atg.service.actor
Interface ActorContext


public interface ActorContext

The ActorContext is used to pass application specific information from the caller to the callee. The caller must create an ActorContext using the ActorContextFactory.

Each time an actor chain is invoked, a new ActorContext and a new ModelMap are passed into the actor chain. Thus each chain has its own context and its own modelmap. If you need to pass an attribute/a variable from the parent chain to the child/nested chain, you need to pass them explicitly.

See Also:
ActorContextImpl, DefaultActorContextFactory

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 java.lang.Object getAttribute(java.lang.String pAttributeName)
          This method gets the attribute named pAttributeName from the attribute map.
 void putAttribute(java.lang.String pAttributeName, java.lang.Object pAttributeValue)
          This method sets an attribute with the key pAttributeName and its value is pAttributeValue
 java.lang.Object removeAttribute(java.lang.String pAttributeName)
          Removes the attribute with key pAttributeName from the attribute map.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Method Detail

getAttribute

java.lang.Object getAttribute(java.lang.String pAttributeName)
This method gets the attribute named pAttributeName from the attribute map.

Parameters:
pAttributeName - The name of the attribute that needs to be returned
Returns:

putAttribute

void putAttribute(java.lang.String pAttributeName,
                  java.lang.Object pAttributeValue)
This method sets an attribute with the key pAttributeName and its value is pAttributeValue

Parameters:
pAttributeName - The name of the attribute that needs to be set
pAttributeValue - The attribute value

removeAttribute

java.lang.Object removeAttribute(java.lang.String pAttributeName)
Removes the attribute with key pAttributeName from the attribute map. Returns the removed object, or null if nothing was removed.

Parameters:
pAttributeName -