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 void applyActionRule(BeanActionRule beanActionRule)
Description copied from interface:ActionRuleApplicableAdds the bean action.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
beanActionRule- the bean action rule
-
applyActionRule
public void applyActionRule(MethodActionRule methodActionRule)
Description copied from interface:ActionRuleApplicableAdds the method action.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
methodActionRule- the bean action rule
-
applyActionRule
public void applyActionRule(IncludeActionRule includeActionRule)
Description copied from interface:ActionRuleApplicableAdds the process-call action.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
includeActionRule- the process call action rule
-
applyActionRule
public void applyActionRule(EchoActionRule echoActionRule)
Description copied from interface:ActionRuleApplicableAdds the echo action.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
echoActionRule- the echo action rule
-
applyActionRule
public void applyActionRule(HeadingActionRule headingActionRule)
Description copied from interface:ActionRuleApplicableAdds the heading action.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
headingActionRule- the heading action rule
-
getExecutableAction
public Executable getExecutableAction()
-
setExecutableAction
public void setExecutableAction(MethodAction 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:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(boolean preventRecursive)
-
newInstance
public static AspectAdviceRule newInstance(AspectRule aspectRule, AspectAdviceType aspectAdviceType)
-
-