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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyActionRule(Executable action)
Adds an executable action instance.Executable
applyActionRule(BeanMethodActionRule beanMethodActionRule)
Adds the bean method action rule.Executable
applyActionRule(ConfigBeanMethodActionRule configBeanMethodActionRule)
Adds the config bean method action rule.Executable
applyActionRule(EchoActionRule echoActionRule)
Adds the echo action rule.Executable
applyActionRule(HeaderActionRule headerActionRule)
Adds the header action rule.Executable
applyActionRule(IncludeActionRule includeActionRule)
Adds the include action rule.void
applyActionRule(java.util.Collection<Executable> actionList)
Adds a list of action instances that can be executed.ActionType
getActionType()
java.lang.Class<?>
getAdviceBeanClass()
java.lang.String
getAdviceBeanId()
AspectAdviceType
getAspectAdviceType()
java.lang.String
getAspectId()
AspectRule
getAspectRule()
ExceptionRule
getExceptionRule()
ExceptionThrownRule
getExceptionThrownRule()
Executable
getExecutableAction()
static AspectAdviceRule
newInstance(AspectRule aspectRule, AspectAdviceType aspectAdviceType)
void
setExceptionThrownRule(ExceptionThrownRule exceptionThrownRule)
void
setExecutableAction(ConfigBeanMethodAction action)
java.lang.String
toString()
java.lang.String
toString(boolean preventRecursive)
-
-
-
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(BeanMethodActionRule beanMethodActionRule)
Description copied from interface:ActionRuleApplicable
Adds the bean method action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
beanMethodActionRule
- the bean method action rule- Returns:
- an instance of the executable action
-
applyActionRule
public Executable applyActionRule(ConfigBeanMethodActionRule configBeanMethodActionRule)
Description copied from interface:ActionRuleApplicable
Adds the config bean method action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
configBeanMethodActionRule
- the config bean 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(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(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 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
-
applyActionRule
public void applyActionRule(java.util.Collection<Executable> actionList)
Description copied from interface:ActionRuleApplicable
Adds a list of action instances that can be executed.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
actionList
- a list of action instances
-
getExecutableAction
public Executable getExecutableAction()
-
setExecutableAction
public void setExecutableAction(ConfigBeanMethodAction 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)
-
-