Class AnnotatedMethodAction
- java.lang.Object
-
- com.aspectran.core.activity.process.action.AbstractAction
-
- com.aspectran.core.activity.process.action.AnnotatedMethodAction
-
- All Implemented Interfaces:
Executable
public class AnnotatedMethodAction extends AbstractAction
The AnnotatedMethodAction that invoking method in the bean instance.Created: 2016. 2. 9.
- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description AnnotatedMethodAction(AnnotatedMethodActionRule annotatedMethodActionRule)
Instantiates a new AnnotatedMethodAction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
execute(Activity activity)
Execute this action.java.lang.String
getActionId()
Gets the action id.<T> T
getActionRule()
Gets the action rule.ActionType
getActionType()
Gets the Action Type.AnnotatedMethodActionRule
getAnnotatedMethodActionRule()
Returns the annotated bean method action rule.static java.lang.Object
invokeMethod(Activity activity, java.lang.Object bean, java.lang.reflect.Method method, ParameterBindingRule[] parameterBindingRules)
boolean
isHidden()
Returns whether this action is hidden.java.lang.String
toString()
-
Methods inherited from class com.aspectran.core.activity.process.action.AbstractAction
getCaseNo, isLastInChooseWhen, setCaseNo, setLastInChooseWhen
-
-
-
-
Constructor Detail
-
AnnotatedMethodAction
public AnnotatedMethodAction(AnnotatedMethodActionRule annotatedMethodActionRule)
Instantiates a new AnnotatedMethodAction.- Parameters:
annotatedMethodActionRule
- the annotated method action rule
-
-
Method Detail
-
execute
public java.lang.Object execute(Activity activity) throws java.lang.Exception
Description copied from interface:Executable
Execute this action.- Parameters:
activity
- the activity- Returns:
- the result of action execution
- Throws:
java.lang.Exception
- the exceptionActionExecutionException
- the action execution exception
-
getAnnotatedMethodActionRule
public AnnotatedMethodActionRule getAnnotatedMethodActionRule()
Returns the annotated bean method action rule.- Returns:
- the annotated bean method action rule
-
getActionId
public java.lang.String getActionId()
Description copied from interface:Executable
Gets the action id.- Specified by:
getActionId
in interfaceExecutable
- Specified by:
getActionId
in classAbstractAction
- Returns:
- the action id
-
isHidden
public boolean isHidden()
Description copied from interface:Executable
Returns whether this action is hidden.- Returns:
- true, if is hidden action
-
getActionType
public ActionType getActionType()
Description copied from interface:Executable
Gets the Action Type.- Returns:
- the Action Type
-
getActionRule
public <T> T getActionRule()
Description copied from interface:Executable
Gets the action rule.- Type Parameters:
T
- the generic type- Returns:
- the action rule
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
invokeMethod
public static java.lang.Object invokeMethod(Activity activity, java.lang.Object bean, java.lang.reflect.Method method, ParameterBindingRule[] parameterBindingRules) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-