|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scopemvc.core.ModelManager | +--org.scopemvc.core.ActionManager
ActionManager is a ModelManager
that handles the actions (invokable
methods) of model objects. The core of Scope doesn't depend on this manager
although this abstract class is in the core package for consistency with the
PropertyManager. An implementation for JavaBean model objects is provided in
BeansActionManager
.
Constructor Summary | |
ActionManager()
|
Method Summary | |
abstract boolean |
canDoAction(java.lang.Object inModel,
ModelAction inAction)
Can this model do the passed ModelAction ? |
abstract java.lang.Object |
doAction(java.lang.Object inModel,
ModelAction inAction,
java.lang.Object[] inParameters)
Generic interface to perform arbitrary actions on a model object. |
static ActionManager |
getInstance(java.lang.Class inModelClass)
Create an ActionManager for the model class |
static ActionManager |
getInstance(java.lang.Object inModel)
Create an ActionManager for the model |
Methods inherited from class org.scopemvc.core.ModelManager |
getModelClass, make |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionManager()
Method Detail |
public static ActionManager getInstance(java.lang.Class inModelClass)
inModelClass
- The class of the model
public static ActionManager getInstance(java.lang.Object inModel)
inModel
- The model
public abstract java.lang.Object doAction(java.lang.Object inModel, ModelAction inAction, java.lang.Object[] inParameters) throws java.lang.Exception
inModel
- the model object to perform the action.inAction
- the ModelAction
to do.inParameters
- parameters for action.
java.lang.Exception
- If the action could not be executed successullypublic abstract boolean canDoAction(java.lang.Object inModel, ModelAction inAction)
ModelAction
?
inModel
- The model that may contain the method for executing the
actioninAction
- The action
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |