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
InvokeActionthat 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.Objectexecute(Activity activity)Execute this action.protected java.lang.Objectexecute(Activity activity, java.lang.Object bean)java.lang.StringgetActionId()Gets the action id.<T> TgetActionRule()Gets the action rule.ActionTypegetActionType()Gets the Action Type.InvokeActionRulegetInvokeActionRule()Returns the invoke action rule.booleanisHidden()Returns whether this action is hidden.java.lang.StringtoString()
-
-
-
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:ExecutableExecute this action.- Specified by:
executein 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:ExecutableGets the action id.- Specified by:
getActionIdin interfaceExecutable- Returns:
- the action id
-
isHidden
public boolean isHidden()
Description copied from interface:ExecutableReturns whether this action is hidden.- Specified by:
isHiddenin interfaceExecutable- Returns:
- true, if is hidden action
-
getActionType
public ActionType getActionType()
Description copied from interface:ExecutableGets the Action Type.- Specified by:
getActionTypein interfaceExecutable- Returns:
- the Action Type
-
getActionRule
public <T> T getActionRule()
Description copied from interface:ExecutableGets the action rule.- Specified by:
getActionRulein interfaceExecutable- Type Parameters:
T- the generic type- Returns:
- the action rule
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-