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
AnnotatedMethodActionthat invokes a method of the bean instance specified by the annotation.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.Objectexecute(Activity activity)Execute this action.java.lang.StringgetActionId()Gets the action id.<T> TgetActionRule()Gets the action rule.ActionTypegetActionType()Gets the Action Type.AnnotatedMethodActionRulegetAnnotatedMethodActionRule()Returns the annotated bean method action rule.static java.lang.ObjectinvokeMethod(Activity activity, java.lang.Object bean, java.lang.reflect.Method method, ParameterBindingRule[] parameterBindingRules)booleanisHidden()Returns whether this action is hidden.java.lang.StringtoString()-
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:ExecutableExecute this action.- Parameters:
activity- the activity- Returns:
- the result of action execution
- Throws:
java.lang.Exception- if the action fails to execute
-
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:ExecutableGets the action id.- Specified by:
getActionIdin interfaceExecutable- Specified by:
getActionIdin classAbstractAction- Returns:
- the action id
-
isHidden
public boolean isHidden()
Description copied from interface:ExecutableReturns whether this action is hidden.- Returns:
- true, if is hidden action
-
getActionType
public ActionType getActionType()
Description copied from interface:ExecutableGets the Action Type.- Returns:
- the Action Type
-
getActionRule
public <T> T getActionRule()
Description copied from interface:ExecutableGets the action rule.- Type Parameters:
T- the generic type- Returns:
- the action rule
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
-