Package org.apache.myfaces.orchestra.conversation

Examples of org.apache.myfaces.orchestra.conversation.Conversation.invalidate()


    {
        ConversationManager conversationManager = ConversationManager.getInstance();
        Conversation conversation = conversationManager.getConversation(conversationName);
        if (conversation != null)
        {
            conversation.invalidate();
        }

        if (restart != null && restart.booleanValue())
        {
            FrameworkAdapter.getCurrentInstance().getBean(conversationName);
View Full Code Here


        assertEquals("real", proxy.getData());

        // After invalidating the conversation and recreating the bean, the proxy and
        // real are no longer the same object.
        Conversation conv = ConversationManager.getInstance().getConversation(CONVERSATION_NAME);
        conv.invalidate();
        proxy.setData("proxy");
        assertEquals("real", real.getData());
        real.setData("real");
        assertEquals("proxy", proxy.getData());
    }
View Full Code Here

                    {
                        log.debug(
                            "Clearing access-scoped conversation " + conversation.getName()
                            + " after rendering view " + viewId);
                    }
                    conversation.invalidate();
                }
            }
        }
    }
}
View Full Code Here

        assertEquals("real", scopedProxy.getData());

        // After invalidating the conversation and recreating the bean, the scopedProxy no longer refers
        // to the same object.
        Conversation conv = ConversationManager.getInstance().getConversation(CONVERSATION_NAME);
        conv.invalidate();
        assertEquals(null, scopedProxy.getData()); // this is a new object with reset data property
        SimpleBean newConvProxy = (SimpleBean) _SpringUtils.getTargetObject(scopedProxy);
        assertNotSame(convProxy, newConvProxy);

        // Writing via the proxy no longer touches the original realBean
View Full Code Here

                    {
                        log.debug(
                            "Clearing access-scoped conversation " + conversation.getName()
                            + " after rendering view " + viewId);
                    }
                    conversation.invalidate();
                }
            }
        }
    }
}
View Full Code Here

    {
        ConversationManager conversationManager = ConversationManager.getInstance();
        Conversation conversation = conversationManager.getConversation(conversationName);
        if (conversation != null)
        {
            conversation.invalidate();
        }

        if (restart != null && restart.booleanValue())
        {
            FrameworkAdapter.getCurrentInstance().getBean(conversationName);
View Full Code Here

        (ConversationFlashLifetimeAspect)
          conversation.getAspect(ConversationFlashLifetimeAspect.class);

      if (aspect != null && !aspect.isAccessed())
      {
        conversation.invalidate();
      }
    }
  }

  public PhaseId getPhaseId()
View Full Code Here

  {
    ConversationManager conversationManager = ConversationManager.getInstance();
    Conversation conversation = conversationManager.getConversation(conversationName);
    if (conversation != null)
    {
      conversation.invalidate();
    }

    if (restart != null && restart.booleanValue())
    {
      FrameworkAdapter.getCurrentInstance().getBean(conversationName);
View Full Code Here

                    {
                        log.debug(
                            "Clearing access-scoped conversation " + conversation.getName()
                            + " after rendering view " + viewId);
                    }
                    conversation.invalidate();
                }
            }
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.