Class AdviceAction
- java.lang.Object
-
- com.aspectran.core.activity.process.action.InvokeAction
-
- com.aspectran.core.activity.process.action.AdviceAction
-
- All Implemented Interfaces:
Executable
public class AdviceAction extends InvokeAction
AdviceAction
that invokes a method for Aspect Advice.Created: 2019. 07. 18
-
-
Constructor Summary
Constructors Constructor Description AdviceAction(InvokeActionRule invokeActionRule, AspectAdviceRule aspectAdviceRule)
Instantiates a new AdviceAction.
-
Method Summary
Modifier and Type Method Description java.lang.Object
execute(Activity activity)
Execute this action.AspectAdviceRule
getAspectAdviceRule()
Gets the aspect advice rule.java.lang.String
toString()
-
Methods inherited from class com.aspectran.core.activity.process.action.InvokeAction
execute, getActionId, getActionRule, getActionType, getInvokeActionRule, isHidden
-
-
-
-
Constructor Detail
-
AdviceAction
public AdviceAction(InvokeActionRule invokeActionRule, AspectAdviceRule aspectAdviceRule)
Instantiates a new AdviceAction.- Parameters:
invokeActionRule
- the invoke action ruleaspectAdviceRule
- the aspect advice rule
-
-
Method Detail
-
getAspectAdviceRule
public AspectAdviceRule getAspectAdviceRule()
Gets the aspect advice rule.- Returns:
- the aspect advice rule
-
execute
public java.lang.Object execute(Activity activity) throws java.lang.Exception
Description copied from interface:Executable
Execute this action.- Specified by:
execute
in interfaceExecutable
- Overrides:
execute
in classInvokeAction
- Parameters:
activity
- the activity- Returns:
- the result of action execution
- Throws:
java.lang.Exception
- if the action fails to execute
-
toString
public java.lang.String toString()
- Overrides:
toString
in classInvokeAction
-
-