Package com.aspectran.core.context.rule
Class AspectAdviceRule
- java.lang.Object
-
- com.aspectran.core.context.rule.AspectAdviceRule
-
- All Implemented Interfaces:
ActionRuleApplicable
public class AspectAdviceRule extends java.lang.Object implements 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 Constructor Description AspectAdviceRule(AspectRule aspectRule, AspectAdviceType aspectAdviceType)
-
Method Summary
-
-
-
Constructor Detail
-
AspectAdviceRule
public AspectAdviceRule(AspectRule aspectRule, AspectAdviceType aspectAdviceType)
-
-
Method Detail
-
getAspectId
public java.lang.String getAspectId()
-
getAspectRule
public AspectRule getAspectRule()
-
getAdviceBeanId
public java.lang.String getAdviceBeanId()
-
getAdviceBeanClass
public java.lang.Class<?> getAdviceBeanClass()
-
getAspectAdviceType
public AspectAdviceType getAspectAdviceType()
-
applyActionRule
public Executable applyActionRule(HeaderActionRule headerActionRule)
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
public Executable applyActionRule(EchoActionRule echoActionRule)
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
public Executable applyActionRule(InvokeActionRule invokeActionRule)
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
public Executable applyActionRule(AnnotatedActionRule annotatedActionRule)
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
public Executable applyActionRule(IncludeActionRule includeActionRule)
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
public Executable applyActionRule(ChooseRule chooseRule)
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
public void applyActionRule(Executable action)
Description copied from interface:ActionRuleApplicable
Adds an executable action instance.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
action
- an executable action instance
-
getExecutableAction
public Executable getExecutableAction()
-
setExecutableAction
public void setExecutableAction(AnnotatedAction action)
-
getActionType
public ActionType getActionType()
-
getExceptionRule
public ExceptionRule getExceptionRule()
-
getExceptionThrownRule
public ExceptionThrownRule getExceptionThrownRule()
-
setExceptionThrownRule
public void setExceptionThrownRule(ExceptionThrownRule exceptionThrownRule)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(boolean preventRecursive)
-
newInstance
public static AspectAdviceRule newInstance(AspectRule aspectRule, AspectAdviceType aspectAdviceType)
-
-