Package org.apache.myfaces.orchestra.conversation.basic

Examples of org.apache.myfaces.orchestra.conversation.basic.LogConversationMessager


    public void testBindToInvalidatedConversation() throws Exception
    {
        // Set up the FrameworkAdapter. This is needed by any ConversationManager operation.
        LocalFrameworkAdapter frameworkAdapter = new LocalFrameworkAdapter();
        frameworkAdapter.setApplicationContext(applicationContext);
        frameworkAdapter.setConversationMessager(new LogConversationMessager());
        FrameworkAdapter.setCurrentInstance(frameworkAdapter);

        Dummy dummy = new Dummy();

        // force a conversation to be created
View Full Code Here


    {
        super.onSetUp();

        LocalFrameworkAdapter frameworkAdapter = new LocalFrameworkAdapter();
        frameworkAdapter.setApplicationContext(applicationContext);
        frameworkAdapter.setConversationMessager(new LogConversationMessager());
        FrameworkAdapter.setCurrentInstance(frameworkAdapter);
    }
View Full Code Here

public class TestRequestParameterProviderManager extends TestCase
{
    public void testParameterAdding()
    {
        LocalFrameworkAdapter lfa = new LocalFrameworkAdapter();
        lfa.setConversationMessager(new LogConversationMessager());
        lfa.setRequestAttribute(RequestParameterServletFilter.REQUEST_PARAM_FILTER_CALLED, Boolean.TRUE);
        FrameworkAdapter.setCurrentInstance(lfa);
        RequestParameterProviderManager man = RequestParameterProviderManager.getInstance();
        man.register(new RequestParameterProvider()
        {
View Full Code Here

        return (ConversationMessager) _ClassUtils.newInstance(conversationMessagerClass);
    }

    protected ConversationMessager createDefaultConversationMessager()
    {
        return new LogConversationMessager();
    }
View Full Code Here

        super.onSetUp();
        shale.doSetUp();

        LocalFrameworkAdapter frameworkAdapter = new LocalFrameworkAdapter();
        frameworkAdapter.setApplicationContext(applicationContext);
        frameworkAdapter.setConversationMessager(new LogConversationMessager());
        FrameworkAdapter.setCurrentInstance(frameworkAdapter);

    }
View Full Code Here

    private void _run()
    {
        // Set up a custom FrameworkAdapter for this thread, so other orchestra code used by this
        // thread which expects one to exist will not throw NullPointerException.
        FrameworkAdapter fa = new LocalFrameworkAdapter();
        ConversationMessager conversationMessager = new LogConversationMessager();
        fa.setConversationMessager(conversationMessager);
        FrameworkAdapter.setCurrentInstance(fa);

        while (!isInterrupted())
        {
View Full Code Here

  {
    super.onSetUp();

    LocalFrameworkAdapter frameworkAdapter = new LocalFrameworkAdapter();
    frameworkAdapter.setApplicationContext(applicationContext);
    frameworkAdapter.setConversationMessager(new LogConversationMessager());
        FrameworkAdapter.setCurrentInstance(frameworkAdapter);
    }
View Full Code Here

    return (ConversationMessager) _ClassUtils.newInstance(conversationMessagerClass);
  }

  protected ConversationMessager createDefaultConversationMessager()
  {
    return new LogConversationMessager();
  }
View Full Code Here

    private void _run()
    {
        // Set up a custom FrameworkAdapter for this thread, so other orchestra code used by this
        // thread which expects one to exist will not throw NullPointerException.
        FrameworkAdapter fa = new LocalFrameworkAdapter();
        ConversationMessager conversationMessager = new LogConversationMessager();
        fa.setConversationMessager(conversationMessager);
        FrameworkAdapter.setCurrentInstance(fa);

        while (!isInterrupted())
        {
View Full Code Here

        {
            // Always use a fresh FrameworkAdapter to avoid OrchestraException
            // "Cannot remove current context" when a request calls session.invalidate();
            // we want getRequestParameter and related functions to always return null..
            FrameworkAdapter fa = new LocalFrameworkAdapter();
            ConversationMessager conversationMessager = new LogConversationMessager();
            fa.setConversationMessager(conversationMessager);
            FrameworkAdapter.setCurrentInstance(fa);
   
            conversationWiperThread.removeConversationManager(cm);
            cm.removeAndInvalidateAllConversationContexts();
View Full Code Here

TOP

Related Classes of org.apache.myfaces.orchestra.conversation.basic.LogConversationMessager

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.