org.jboss.seam.conversation.api
Class AbstractSeamConversationContext<T>

java.lang.Object
  extended by org.jboss.seam.conversation.api.AbstractSeamConversationContext<T>
All Implemented Interfaces:
SeamConversationContext<T>
Direct Known Subclasses:
AbstractHttpSeamConversationContext

public abstract class AbstractSeamConversationContext<T>
extends Object
implements SeamConversationContext<T>

Abstract Seam conversation context.

Author:
Ales Justin

Constructor Summary
AbstractSeamConversationContext()
           
 
Method Summary
 SeamConversationContext<T> activate(String conversationId)
          Activate conversation with given id.
 SeamConversationContext<T> associate(T storage)
          Associate storage with conversation context.
 SeamConversationContext<T> deactivate()
          Deactivate conversation context(s).
 SeamConversationContext<T> dissociate(T storage)
          Dissociate storage with conversation context.
protected abstract  void doActivate(String conversationId)
           
protected abstract  void doAssociate(T storage)
           
protected abstract  void doDeactivate()
           
protected abstract  void doDissociate(T storage)
           
protected abstract  void doInvalidate()
           
 SeamConversationContext<T> invalidate()
          Invalidate conversation context.
protected static boolean isEmpty(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSeamConversationContext

public AbstractSeamConversationContext()
Method Detail

doAssociate

protected abstract void doAssociate(T storage)

associate

public SeamConversationContext<T> associate(T storage)
Description copied from interface: SeamConversationContext
Associate storage with conversation context.

Specified by:
associate in interface SeamConversationContext<T>
Parameters:
storage - the current storage
Returns:
the flowing current SeamConversationContext instance

doDissociate

protected abstract void doDissociate(T storage)

dissociate

public SeamConversationContext<T> dissociate(T storage)
Description copied from interface: SeamConversationContext
Dissociate storage with conversation context.

Specified by:
dissociate in interface SeamConversationContext<T>
Parameters:
storage - the current storage
Returns:
the flowing current SeamConversationContext instance

doActivate

protected abstract void doActivate(String conversationId)

activate

public SeamConversationContext<T> activate(String conversationId)
Description copied from interface: SeamConversationContext
Activate conversation with given id.

Specified by:
activate in interface SeamConversationContext<T>
Parameters:
conversationId - the conversation id to activate
Returns:
the flowing current SeamConversationContext instance

doInvalidate

protected abstract void doInvalidate()

invalidate

public SeamConversationContext<T> invalidate()
Description copied from interface: SeamConversationContext
Invalidate conversation context.

Specified by:
invalidate in interface SeamConversationContext<T>
Returns:
the flowing current SeamConversationContext instance

doDeactivate

protected abstract void doDeactivate()

deactivate

public SeamConversationContext<T> deactivate()
Description copied from interface: SeamConversationContext
Deactivate conversation context(s).

Specified by:
deactivate in interface SeamConversationContext<T>
Returns:
the flowing current SeamConversationContext instance

isEmpty

protected static boolean isEmpty(String string)


Copyright © 2011 Seam Framework. All Rights Reserved.