|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
java.lang.Object getAttribute(java.lang.String pAttributeName)
pAttributeName
from the attribute map.
pAttributeName
- The name of the attribute that needs to be returned
void putAttribute(java.lang.String pAttributeName, java.lang.Object pAttributeValue)
pAttributeName
and its value is pAttributeValue
pAttributeName
- The name of the attribute that needs to be setpAttributeValue
- The attribute valuejava.lang.Object removeAttribute(java.lang.String pAttributeName)
pAttributeName
from the attribute map.
Returns the removed object, or null if nothing was removed.
pAttributeName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |