Class MethodAction
- java.lang.Object
-
- com.aspectran.core.activity.process.action.AbstractAction
-
- com.aspectran.core.activity.process.action.MethodAction
-
- All Implemented Interfaces:
Executable
public class MethodAction extends AbstractAction
The MethodAction that invoking method in the bean instance.Created: 2016. 2. 9.
- Since:
- 2.0.0
-
-
Field Summary
-
Fields inherited from class com.aspectran.core.activity.process.action.AbstractAction
parent
-
-
Constructor Summary
Constructors Constructor Description MethodAction(MethodActionRule methodActionRule, ActionList parent)Instantiates a new MethodAction.
-
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.MethodActionRulegetMethodActionRule()Returns the method action rule.ActionListgetParent()Gets the action list.static java.lang.ObjectinvokeMethod(Activity activity, java.lang.Object bean, java.lang.reflect.Method method, boolean requiresTranslet)booleanisHidden()Returns whether this action is hidden.java.lang.StringtoString()
-
-
-
Constructor Detail
-
MethodAction
public MethodAction(MethodActionRule methodActionRule, ActionList parent)
Instantiates a new MethodAction.- Parameters:
methodActionRule- the method action ruleparent- the parent of this action
-
-
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- the exceptionActionExecutionException- the action execution exception
-
invokeMethod
public static java.lang.Object invokeMethod(Activity activity, java.lang.Object bean, java.lang.reflect.Method method, boolean requiresTranslet) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
getMethodActionRule
public MethodActionRule getMethodActionRule()
Returns the method action rule.- Returns:
- the method action rule
-
getParent
public ActionList getParent()
Description copied from interface:ExecutableGets the action list.- Specified by:
getParentin interfaceExecutable- Overrides:
getParentin classAbstractAction- Returns:
- the action list
-
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
-
-