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

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

public class SimpleConversationProcessor
extends Object
implements ConversationProcessor

A simple yet effective implementation of ConversationProcessor that manages conversation life cycles, but does not inject ConversationFields. Ideal for using in cases such as when field injection will be handled by Spring.

Author:
rees.byars
See Also:
Serialized Form

Field Summary
protected  ConversationConfigurationProvider configurationProvider
           
 
Constructor Summary
SimpleConversationProcessor()
           
 
Method Summary
protected  void handleInvalidId(String conversationName, String conversationId)
           
protected  void processConversation(ConversationClassConfiguration conversationConfig, ConversationAdapter conversationAdapter, Object action)
           
 void processConversations(ConversationAdapter conversationAdapter)
          Process the conversations for the current request using the given adapter
 void setConfigurationProvider(ConversationConfigurationProvider configurationProvider)
          Set the configuration provider for this manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configurationProvider

protected ConversationConfigurationProvider configurationProvider
Constructor Detail

SimpleConversationProcessor

public SimpleConversationProcessor()
Method Detail

setConfigurationProvider

@Component
public void setConfigurationProvider(ConversationConfigurationProvider configurationProvider)
Set the configuration provider for this manager

Specified by:
setConfigurationProvider in interface ConversationProcessor

processConversations

public void processConversations(ConversationAdapter conversationAdapter)
                          throws ConversationException
Process the conversations for the current request using the given adapter

Specified by:
processConversations in interface ConversationProcessor
Throws:
ConversationException

processConversation

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

handleInvalidId

protected void handleInvalidId(String conversationName,
                               String conversationId)
                        throws ConversationIdException
Throws:
ConversationIdException


Copyright © 2012-2013. All Rights Reserved.