Class BeanMethodAction
- java.lang.Object
-
- com.aspectran.core.activity.process.action.AbstractAction
-
- com.aspectran.core.activity.process.action.BeanMethodAction
-
- All Implemented Interfaces:
Executable
public class BeanMethodAction extends AbstractAction
BeanMethodActionthat invokes a method of the bean instance.Created: 2008. 03. 22 PM 5:50:35
-
-
Constructor Summary
Constructors Constructor Description BeanMethodAction(BeanMethodActionRule beanMethodActionRule)Instantiates a new BeanMethodAction.
-
Method Summary
All 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.AspectAdviceRulegetAspectAdviceRule()Gets the aspect advice rule.BeanMethodActionRulegetBeanMethodActionRule()Returns the bean method action rule.booleanisHidden()Returns whether this action is hidden.voidsetAspectAdviceRule(AspectAdviceRule aspectAdviceRule)Sets the aspect advice rule.java.lang.StringtoString()-
Methods inherited from class com.aspectran.core.activity.process.action.AbstractAction
getCaseNo, isLastInChooseWhen, setCaseNo, setLastInChooseWhen
-
-
-
-
Constructor Detail
-
BeanMethodAction
public BeanMethodAction(BeanMethodActionRule beanMethodActionRule)
Instantiates a new BeanMethodAction.- Parameters:
beanMethodActionRule- the bean method action rule
-
-
Method Detail
-
getAspectAdviceRule
public AspectAdviceRule getAspectAdviceRule()
Gets the aspect advice rule.- Returns:
- the aspect advice rule
-
setAspectAdviceRule
public void setAspectAdviceRule(AspectAdviceRule aspectAdviceRule)
Sets the aspect advice rule.- Parameters:
aspectAdviceRule- the new aspect advice rule
-
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
-
getBeanMethodActionRule
public BeanMethodActionRule getBeanMethodActionRule()
Returns the bean method action rule.- Returns:
- the 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
-
-