com.google.code.rees.scope.conversation.processing
Class DefaultInjectionConversationProcessor

java.lang.Object
  extended by com.google.code.rees.scope.conversation.processing.SimpleConversationProcessor
      extended by com.google.code.rees.scope.conversation.processing.DefaultInjectionConversationProcessor
All Implemented Interfaces:
ConversationPostProcessor, ConversationProcessor, InjectionConversationProcessor, Serializable

public class DefaultInjectionConversationProcessor
extends SimpleConversationProcessor
implements InjectionConversationProcessor, ConversationPostProcessor

The default implementation of the InjectionConversationProcessor

Author:
rees.byars
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.code.rees.scope.conversation.processing.SimpleConversationProcessor
configurationProvider
 
Constructor Summary
DefaultInjectionConversationProcessor()
           
 
Method Summary
 void extractConversationFields(Object target, ConversationAdapter conversationAdapter)
          Extract the ConversationFields from the target and place them into the conversations' contexts for active conversations associated with the current request.
 void injectConversationFields(Object target, ConversationAdapter conversationAdapter)
          Inject the ConversationFields on the target from the appropriate conversation contexts for active conversations associated with the current request
 void postProcessConversation(ConversationAdapter conversationAdapter, ConversationClassConfiguration conversationConfig, String conversationId)
          Perform the post-processing using the given parameters
protected  void processConversation(ConversationClassConfiguration conversationConfig, ConversationAdapter conversationAdapter, Object action)
          
 
Methods inherited from class com.google.code.rees.scope.conversation.processing.SimpleConversationProcessor
handleInvalidId, processConversations, setConfigurationProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.code.rees.scope.conversation.processing.ConversationProcessor
processConversations, setConfigurationProvider
 

Constructor Detail

DefaultInjectionConversationProcessor

public DefaultInjectionConversationProcessor()
Method Detail

processConversation

protected void processConversation(ConversationClassConfiguration conversationConfig,
                                   ConversationAdapter conversationAdapter,
                                   Object action)
                            throws ConversationException

Overrides:
processConversation in class SimpleConversationProcessor
Throws:
ConversationException

postProcessConversation

public void postProcessConversation(ConversationAdapter conversationAdapter,
                                    ConversationClassConfiguration conversationConfig,
                                    String conversationId)
Perform the post-processing using the given parameters

Specified by:
postProcessConversation in interface ConversationPostProcessor

injectConversationFields

public void injectConversationFields(Object target,
                                     ConversationAdapter conversationAdapter)
Inject the ConversationFields on the target from the appropriate conversation contexts for active conversations associated with the current request

Specified by:
injectConversationFields in interface InjectionConversationProcessor

extractConversationFields

public void extractConversationFields(Object target,
                                      ConversationAdapter conversationAdapter)
Extract the ConversationFields from the target and place them into the conversations' contexts for active conversations associated with the current request.

Specified by:
extractConversationFields in interface InjectionConversationProcessor


Copyright © 2012-2013. All Rights Reserved.