Examples of ConversationManager


Examples of com.google.code.rees.scope.conversation.ConversationManager

public class DefaultScopeManagerTest {

    @Test
    public void testProcessScopes() {

        ConversationManager cManager = EasyMock
                .createMock(ConversationManager.class);
        ConversationAdapter cAdapter = EasyMock
                .createMock(ConversationAdapter.class);
        cManager.processConversations(cAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(cManager);

        SessionManager sManager = EasyMock.createMock(SessionManager.class);
        SessionAdapter sAdapter = EasyMock.createMock(SessionAdapter.class);
View Full Code Here

Examples of com.google.code.rees.scope.conversation.processing.ConversationManager

public class DefaultScopeManagerTest {

    @Test
    public void testProcessScopes() {

        ConversationManager cManager = EasyMock
                .createMock(ConversationManager.class);
        ConversationAdapter cAdapter = EasyMock
                .createMock(ConversationAdapter.class);
        cManager.processConversations(cAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(cManager);

        SessionManager sManager = EasyMock.createMock(SessionManager.class);
        SessionAdapter sAdapter = EasyMock.createMock(SessionAdapter.class);
View Full Code Here

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

        {
            // Note that ConversationManager.getInstance requires the FrameworkAdapter
            // to be initialised...
            //
            // ?? Why is false passed here ??
            ConversationManager manager = ConversationManager.getInstance(false);
            if (manager != null)
            {
                context = manager.getCurrentConversationContext();
                if (context != null)
                {
                    try
                    {
                        context.lockInterruptablyForCurrentThread();
View Full Code Here

Examples of org.apache.tuscany.sca.core.conversation.ConversationManager

    private void conversationPreinvoke(Message msg, RuntimeWire wire) {
        if (!conversational) {
            // Not conversational or the conversation has been started
            return;
        }
        ConversationManager conversationManager = ((RuntimeWireImpl)wire).getConversationManager();
        if (conversation == null || conversation.getState() == ConversationState.ENDED) {
            conversation = conversationManager.startConversation(getConversationID());
            if (callableReference != null) {
                ((CallableReferenceImpl)callableReference).attachConversation(conversation);
            }
        }
        // TODO - assuming that the conversation ID is a string here when
View Full Code Here

Examples of org.apache.tuscany.sca.core.conversation.ConversationManager

        JavaInterfaceFactory javaInterfaceFactory =
            registry.getExtensionPoint(ModelFactoryExtensionPoint.class).getFactory(JavaInterfaceFactory.class);
        RequestContextFactory requestContextFactory =
            registry.getExtensionPoint(ContextFactoryExtensionPoint.class).getFactory(RequestContextFactory.class);

        ConversationManager conversationManager = new ConversationManagerImpl();
        registry.addExtensionPoint(conversationManager);
       
        // Create the composite activator
        CompositeActivator compositeActivator =
            new CompositeActivatorImpl(assemblyFactory, messageFactory, javaInterfaceFactory, scaBindingFactory,
View Full Code Here

Examples of org.apache.tuscany.sca.core.conversation.ConversationManager

        JavaInterfaceFactory javaInterfaceFactory =
            registry.getExtensionPoint(ModelFactoryExtensionPoint.class).getFactory(JavaInterfaceFactory.class);
        RequestContextFactory requestContextFactory =
            registry.getExtensionPoint(ContextFactoryExtensionPoint.class).getFactory(RequestContextFactory.class);

        ConversationManager conversationManager = new ConversationManagerImpl();
        registry.addExtensionPoint(conversationManager);
       
        // Create the composite activator
        CompositeActivator compositeActivator =
            new CompositeActivatorImpl(assemblyFactory, messageFactory, javaInterfaceFactory, scaBindingFactory,
View Full Code Here

Examples of org.apache.tuscany.sca.core.conversation.ConversationManager

        if (!conversational) {
            // Not conversational or the conversation has been started
            return;
        }

        ConversationManager conversationManager = ((RuntimeWireImpl)wire).getConversationManager();

        if (conversation == null || conversation.getState() == ConversationState.ENDED) {

            conversation = conversationManager.startConversation(getConversationID());
           
            // if this is a local wire then set up the conversation timeouts here based on the
            // parameters from the component
            if (wire.getTarget().getComponent() != null){
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
View Full Code Here

Examples of org.apache.tuscany.sca.core.conversation.ConversationManager

        if (!conversational) {
            // Not conversational or the conversation has been started
            return;
        }

        ConversationManager conversationManager = ((RuntimeWireImpl)wire).getConversationManager();

        if (conversation == null || conversation.getState() == ConversationState.ENDED) {

            conversation = conversationManager.startConversation(getConversationID());
           
            // if this is a local wire then set up the conversation timeouts here based on the
            // parameters from the component
            if (wire.getTarget().getComponent() != null){
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
View Full Code Here

Examples of org.apache.tuscany.sca.core.conversation.ConversationManager

        if (!conversational) {
            // Not conversational or the conversation has been started
            return;
        }

        ConversationManager conversationManager = ((RuntimeWireImpl2)wire).getConversationManager();

        if (conversation == null || conversation.getState() == ConversationState.ENDED) {

            conversation = conversationManager.startConversation(getConversationID());
           
            // if this is a local wire then set up the conversation timeouts here based on the
            // parameters from the component
            if (wire.getTarget().getComponent() != null){
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
View Full Code Here

Examples of org.apache.tuscany.sca.core.conversation.ConversationManager

        if (!conversational) {
            // Not conversational or the conversation has been started
            return;
        }

        ConversationManager conversationManager = ((RuntimeWireImpl)wire).getConversationManager();

        if (conversation == null || conversation.getState() == ConversationState.ENDED) {

            conversation = conversationManager.startConversation(getConversationID());
           
            // if this is a local wire then set up the conversation timeouts here based on the
            // parameters from the component
            if (wire.getTarget().getComponent() != null){
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
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.