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

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


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

    protected ConversationMessager createDefaultConversationMessager()
    {
        return new LogConversationMessager();
    }
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

    {
        super.onSetUp();

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

    {
        super.onSetUp();

        LocalFrameworkAdapter frameworkAdapter = new LocalFrameworkAdapter();
        frameworkAdapter.setApplicationContext(applicationContext);
        frameworkAdapter.setConversationMessager(new LogConversationMessager());
        FrameworkAdapter.setCurrentInstance(frameworkAdapter);
    }
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

    {
        super.onSetUp();

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

    public void testFoo() 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);

        // Get the object from spring. Orchestra should wrap it in a proxy that implements ScopedObject
        SimpleBean b1 = (SimpleBean) applicationContext.getBean("unscopedBean");
        assertNotNull(b1);
View Full Code Here

    public void testCorrectConversation() 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);

        final SimpleBean b1 = (SimpleBean) applicationContext.getBean("unscopedBean");
        assertNotNull(b1);
View Full Code Here

    public void testPlainBean() 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);

        // The object is proxied by a JDK proxy; this is the default behaviour. It therefore
        // has all the interfaces of a SimpleBean, and is backed by a SimpleBean, but cannot
        // be cast to one.
View Full Code Here

    public void testBind() 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();
        assertFalse(dummy instanceof ScopedObject);
        assertFalse(dummy instanceof SpringProxy);
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.