Package com.aspectran.core.context.rule
Class AspectAdviceRule
java.lang.Object
com.aspectran.core.context.rule.AspectAdviceRule
- All Implemented Interfaces:
ActionRuleApplicable
Advices are actions taken for a particular join point.
In terms of programming, they are methods that gets executed
when a certain join point with matching pointcut is reached
in the application.
Created: 2008. 04. 01 PM 11:19:28
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyActionRule
(Executable action) Adds an executable action instance.applyActionRule
(AnnotatedActionRule annotatedActionRule) Adds the annotated method action rule.applyActionRule
(ChooseRule chooseRule) Adds a list of action instances that can be executed.applyActionRule
(EchoActionRule echoActionRule) Adds the echo action rule.applyActionRule
(HeaderActionRule headerActionRule) Adds the header action rule.applyActionRule
(IncludeActionRule includeActionRule) Adds the include action rule.applyActionRule
(InvokeActionRule invokeActionRule) Adds the invoke action rule.Class<?>
static AspectAdviceRule
newInstance
(AspectRule aspectRule, AspectAdviceType aspectAdviceType) void
setExceptionThrownRule
(ExceptionThrownRule exceptionThrownRule) void
setExecutableAction
(AnnotatedAction action) toString()
-
Constructor Details
-
AspectAdviceRule
-
-
Method Details
-
getAspectId
-
getAspectRule
-
getAdviceBeanId
-
getAdviceBeanClass
-
getAspectAdviceType
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the header action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
headerActionRule
- the header action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the echo action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
echoActionRule
- the echo action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the invoke action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
invokeActionRule
- the invoke action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the annotated method action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
annotatedActionRule
- the annotated method action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the include action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
includeActionRule
- the include action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds a list of action instances that can be executed.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
chooseRule
- the choose rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds an executable action instance.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
action
- an executable action instance
-
getExecutableAction
-
setExecutableAction
-
getActionType
-
getExceptionRule
-
getExceptionThrownRule
-
setExceptionThrownRule
-
toString
-
newInstance
@NonNull public static AspectAdviceRule newInstance(AspectRule aspectRule, AspectAdviceType aspectAdviceType)
-