ActionDef Class
- public class ActionDef
extends Object
implements Serializable
Definition of an Action object. This can be used to create
an Action through the ActionServer so that the Action
implementation classes will be reloaded by hot-deploying
them along with the ActionServer EJB.
-
Hierarchy
-
Object
ActionDef
-
All Implemented Interfaces
-
Serializable
-
Direct Known Subclasses
-
AddAdToPlaceholderActionDef
, AddUserDiscountActionDef
, EndScenarioActionDef
, MailActionDef
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionDef
public ActionDef()
createAction() Method
public Action
createAction()
throws ActionException
Create and return the Action implementation defined in
the actionType field; initialized with the parameters in
actionParams.
This will attempt to use the nearest ejb-ref mapped to
java:comp/env/ejb/ActionService.
Returns
- the created Action implementation
Exceptions
-
ActionException
getActionParams() Method
public Map
getActionParams()
Get the parameters for the Action. This is
simply a map of name/value pairs; it is up to
the developer to know what values must be passed
to the particular Action implementation.
getActionService() Method
protected ActionService
getActionService()
throws CreateException
, RemoteException
Get the nearest java:comp/env/ejb/ActionService.
Exceptions
-
CreateException
-
RemoteException
getActionType() Method
public String
getActionType()
Get the type of Action to create. This will be
passed to the ActionServer, which will map the
type to a class, and instantiate that class.
setActionParams(Map) Method
public void setActionParams(Map
map)
Set the parameters for the Action. This is
simply a map of name/value pairs; it is up to
the developer to know what values must be passed
to the particular Action implementation.
setActionType(String) Method
public void setActionType(String
s)
Set the type of Action to create. This will be
passed to the ActionServer, which will map the
type to a class, and instantiate that class.