Package org.apache.myfaces.orchestra.frameworkAdapter.local

Examples of org.apache.myfaces.orchestra.frameworkAdapter.local.LocalFrameworkAdapter


    protected void onSetUp() throws Exception
    {
        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

    protected void onSetUp() throws Exception
    {
        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())
        {
            ConversationManager[] managersArray;
View Full Code Here

  protected void onSetUp() throws Exception
  {
    super.onSetUp();

    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())
        {
            ConversationManager[] managersArray;
View Full Code Here

        try
        {
            // 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.frameworkAdapter.local.LocalFrameworkAdapter

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.