Package org.apache.myfaces.orchestra.conversation

Examples of org.apache.myfaces.orchestra.conversation.ConversationManager


        {
            String attrName = (String) e.nextElement();
            Object val = session.getAttribute(attrName);
            if (val instanceof ConversationManager)
            {
                ConversationManager cm = (ConversationManager) val;
                conversationWiperThread.removeConversationManager(cm);
            }
        }
    }
View Full Code Here


     * <p>
     * TODO: what does Spring use this for????
     */
    public String getConversationId()
    {
        ConversationManager manager = ConversationManager.getInstance();
        ConversationContext ctx = manager.getCurrentConversationContext();
        if (ctx != null)
        {
            return Long.toString(ctx.getId(), 10);
        }

View Full Code Here

    {
        if (log.isDebugEnabled())
        {
            log.debug("getRealBean called for bean " + beanName);
        }
        ConversationManager manager = ConversationManager.getInstance();
        Conversation conversation;

        // check if we have a conversation
        synchronized(manager)
        {
            conversation = manager.getConversation(conversationName);
            if (conversation == null)
            {
                // Start the conversation. This eventually results in a
                // callback to the createConversation method on this class.
                conversation = manager.startConversation(conversationName, this);
            }
            else
            {
                // sanity check: verify that two beans with the different scopes
                // do not declare the same conversationName.
View Full Code Here

     * Get the conversation for the given beanName.
     * Returns null if the conversation does not exist.
     */
    protected Conversation getConversationForBean(String beanDefName)
    {
        ConversationManager manager = ConversationManager.getInstance();
        String conversationName = getConversationNameForBean(beanDefName);
        Conversation conversation = manager.getConversation(conversationName);
        return conversation;
    }
View Full Code Here

                // part of the page remains unsubmitted.
                return;
            }
        }

        ConversationManager conversationManager = ConversationManager.getInstance(false);
        if (conversationManager == null)
        {
            return;
        }

        boolean isDebug = log.isDebugEnabled();
        Iterator iterConversations = conversationManager.iterateConversations();
        while (iterConversations.hasNext())
        {
            Conversation conversation = (Conversation) iterConversations.next();
           
            // This conversation has "access" scope if it has an attached Aspect
View Full Code Here

     * <p>
     * TODO: what does Spring use this for????
     */
    public String getConversationId()
    {
        ConversationManager manager = ConversationManager.getInstance();
        ConversationContext ctx = manager.getCurrentConversationContext();
        if (ctx != null)
        {
            return Long.toString(ctx.getId(), 10);
        }

View Full Code Here

    {
        if (log.isDebugEnabled())
        {
            log.debug("getRealBean called for bean " + beanName);
        }
        ConversationManager manager = ConversationManager.getInstance();
        Conversation conversation;

        // check if we have a conversation
        synchronized(manager)
        {
            conversation = manager.getConversation(conversationName);
            if (conversation == null)
            {
                // Start the conversation. This eventually results in a
                // callback to the createConversation method on this class.
                conversation = manager.startConversation(conversationName, this);
            }
            else
            {
                // sanity check: verify that two beans with the different scopes
                // do not declare the same conversationName.
View Full Code Here

     * Get the conversation for the given beanName.
     * Returns null if the conversation does not exist.
     */
    protected Conversation getConversationForBean(String beanDefName)
    {
        ConversationManager manager = ConversationManager.getInstance();
        String conversationName = getConversationNameForBean(beanDefName);
        Conversation conversation = manager.getConversation(conversationName);
        return conversation;
    }
View Full Code Here

     * <p>
     * TODO: what does Spring use this for????
     */
    public String getConversationId()
    {
        ConversationManager manager = ConversationManager.getInstance();
        ConversationContext ctx = manager.getCurrentConversationContext();
        if (ctx != null)
        {
            return Long.toString(ctx.getId(), 10);
        }

View Full Code Here

    {
        if (log.isDebugEnabled())
        {
            log.debug("getRealBean called for bean " + beanName);
        }
        ConversationManager manager = ConversationManager.getInstance();
        Conversation conversation;

        // check if we have a conversation
        synchronized(manager)
        {
            conversation = manager.getConversation(conversationName);
            if (conversation == null)
            {
                // Start the conversation. This eventually results in a
                // callback to the createConversation method on this class.
                conversation = manager.startConversation(conversationName, this);
            }
            else
            {
                // sanity check: verify that two beans with the different scopes
                // do not declare the same conversationName.
View Full Code Here

TOP

Related Classes of org.apache.myfaces.orchestra.conversation.ConversationManager

Copyright © 2018 www.massapicom. 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.