Class InvokeAction
- java.lang.Object
-
- com.aspectran.core.activity.process.action.InvokeAction
-
- All Implemented Interfaces:
Executable
- Direct Known Subclasses:
AdviceAction
public class InvokeAction extends java.lang.Object implements Executable
InvokeAction
that invokes a method of the bean instance.Created: 2008. 03. 22 PM 5:50:35
-
-
Constructor Summary
Constructors Constructor Description InvokeAction(InvokeActionRule invokeActionRule)
Instantiates a new InvokeAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
execute(Activity activity)
Execute this action.protected java.lang.Object
execute(Activity activity, java.lang.Object bean)
java.lang.String
getActionId()
Gets the action id.<T> T
getActionRule()
Gets the action rule.ActionType
getActionType()
Gets the Action Type.InvokeActionRule
getInvokeActionRule()
Returns the invoke action rule.boolean
isHidden()
Returns whether this action is hidden.java.lang.String
toString()
-
-
-
Constructor Detail
-
InvokeAction
public InvokeAction(InvokeActionRule invokeActionRule)
Instantiates a new InvokeAction.- Parameters:
invokeActionRule
- the invoke action rule
-
-
Method Detail
-
execute
public java.lang.Object execute(Activity activity) throws java.lang.Exception
Description copied from interface:Executable
Execute this action.- Specified by:
execute
in interfaceExecutable
- Parameters:
activity
- the activity- Returns:
- the result of action execution
- Throws:
java.lang.Exception
- if the action fails to execute
-
execute
protected java.lang.Object execute(Activity activity, java.lang.Object bean) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getInvokeActionRule
public InvokeActionRule getInvokeActionRule()
Returns the invoke action rule.- Returns:
- the invoke action rule
-
getActionId
public java.lang.String getActionId()
Description copied from interface:Executable
Gets the action id.- Specified by:
getActionId
in interfaceExecutable
- Returns:
- the action id
-
isHidden
public boolean isHidden()
Description copied from interface:Executable
Returns whether this action is hidden.- Specified by:
isHidden
in interfaceExecutable
- Returns:
- true, if is hidden action
-
getActionType
public ActionType getActionType()
Description copied from interface:Executable
Gets the Action Type.- Specified by:
getActionType
in interfaceExecutable
- Returns:
- the Action Type
-
getActionRule
public <T> T getActionRule()
Description copied from interface:Executable
Gets the action rule.- Specified by:
getActionRule
in interfaceExecutable
- Type Parameters:
T
- the generic type- Returns:
- the action rule
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-