|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Actor
The actors behaves as a controller in the MVC paradigm. It helps generate a model (a map of maps called a ModelMap). Each actor implementation implements this Actor interface.
The actor is a doer. The doer is the one when called, it acts and gets things done. The actor implementation does whatever the actor needs to do and if necessary updates the model map .
Each actor delegates to a resource - a JSP page, form handler, droplet, component or another chain of actors. These are few OTB examples of actors. But this interface could be implemented for some other purposes as well.
The Actor implementation should make sure that ActorContext
and ModelMap
are non-null.
The Form actor supports html form related features
,
The Component actor supports component related features.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary | |
---|---|
void |
act(ActorContext pActorContext,
ModelMap pModelMap)
This method takes a non-null ModelMap and a non-null context called an ActorContext. |
Field Detail |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
void act(ActorContext pActorContext, ModelMap pModelMap) throws ActorException
ActorContext
and ModelMap
are non-null.
pActorContext
- The ActorContext is a map where attributes can be passed into the actor.pModelMap
- A map that contains models
ActorException
- If there is any error, this exception is thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |