Class ActivityRuleAssistant
java.lang.Object
com.aspectran.core.context.rule.assistant.ActivityRuleAssistant
- Direct Known Subclasses:
ShallowContextRuleAssistant
The Class ActivityRuleAssistant.
Created: 2008. 04. 01 PM 10:25:35
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ActivityRuleAssistant
(ClassLoader classLoader, ApplicationAdapter applicationAdapter, EnvironmentProfiles environmentProfiles) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAspectRule
(AspectRule aspectRule) Adds the aspect rule.void
addBeanRule
(BeanRule beanRule) Adds the bean rule.void
addEnvironmentRule
(EnvironmentRule environmentRule) Adds the environment rule.void
addInnerBeanRule
(BeanRule beanRule) void
addScheduleRule
(ScheduleRule scheduleRule) Adds the schedule rule.void
addTemplateRule
(TemplateRule templateRule) Add the template rule.void
addTransletRule
(TransletRule transletRule) Add the translet rule.void
addTypeAlias
(String alias, String type) Adds a type alias to use for simplifying complex type signatures.void
Apply settings.applyTransletNamePattern
(String transletName) Returns the translet name of the prefix and suffix are combined.Backup the assistant local.void
Removes the last rule appender after rule parsing is complete.getAliasedType
(String alias) Returns a type of aliased type that is defined by assigning the type to the alias.Gets the aspect rule registry.Returns all Aspect rules.Gets the assistant local.Returns the bean reference inspector.Returns the bean rule registry.Returns all bean rules.Gets the environment rules.Returns the rule append handler.Returns the schedule rule registry.Returns all schedule rules.getSetting
(DefaultSettingType settingType) Gets the setting value.Gets the settings.Returns the template rule registry.Returns all template rules.Returns the translet rule registry.Returns all translet rules.Gets the type aliases.boolean
Returns whether the pointcut pattern validation is required.void
prepare()
profiling
(DescriptionRule newDr, DescriptionRule oldDr) profiling
(ItemRuleMap newIrm, ItemRuleMap oldIrm) void
putSetting
(String name, String value) Puts the setting value.void
release()
void
reserveBeanReference
(Class<?> beanClass, BeanReferenceable referenceable) void
reserveBeanReference
(String beanId, BeanReferenceable referenceable) void
reserveBeanReference
(String beanId, Class<?> beanClass, BeanReferenceable referenceable) void
resolveActionBeanClass
(InvokeActionRule invokeActionRule) Resolve bean class for bean method action rule.void
resolveAdviceBeanClass
(AspectRule aspectRule) Resolve bean class for the aspect rule.resolveAliasType
(String alias) Returns a type of aliased type that is defined by assigning the type to the alias.void
resolveBeanClass
(Token token) Resolve bean class for token.void
resolveBeanClass
(Token[] tokens) Resolve bean class for token.void
resolveBeanClass
(AutowireRule autowireRule) Resolve bean class for the autowire rule.void
resolveBeanClass
(BeanRule beanRule) void
resolveBeanClass
(ItemRule itemRule) Resolve bean class.void
resolveBeanClass
(ScheduleRule scheduleRule) Resolve bean class for the schedule rule.void
resolveBeanClass
(TemplateRule templateRule) Resolve bean class for the template rule.void
resolveFactoryBeanClass
(BeanRule beanRule) Resolve bean class for factory bean rule.void
restoreAssistantLocal
(AssistantLocal oldAssistantLocal) Restore the assistant local.void
setRuleAppendHandler
(RuleAppendHandler ruleAppendHandler) Sets the rule append handler.
-
Constructor Details
-
ActivityRuleAssistant
protected ActivityRuleAssistant() -
ActivityRuleAssistant
public ActivityRuleAssistant(ClassLoader classLoader, ApplicationAdapter applicationAdapter, EnvironmentProfiles environmentProfiles)
-
-
Method Details
-
prepare
public void prepare() -
release
public void release() -
getClassLoader
-
getApplicationAdapter
-
getBasePath
-
getEnvironmentProfiles
-
getSettings
Gets the settings.- Returns:
- the settings
-
getSetting
Gets the setting value.- Parameters:
settingType
- the setting type- Returns:
- the setting
-
putSetting
Puts the setting value.- Parameters:
name
- the namevalue
- the value- Throws:
IllegalRuleException
- if an unknown setting name is found
-
applySettings
public void applySettings()Apply settings. -
getEnvironmentRules
Gets the environment rules.- Returns:
- the environment rules
-
addEnvironmentRule
Adds the environment rule.- Parameters:
environmentRule
- the environment rule
-
getTypeAliases
Gets the type aliases.- Returns:
- the type aliases
-
addTypeAlias
Adds a type alias to use for simplifying complex type signatures. A type alias is defined by assigning the type to the alias.- Parameters:
alias
- the name of the aliastype
- the type identifier that you are creating an alias for
-
getAliasedType
Returns a type of aliased type that is defined by assigning the type to the alias.- Parameters:
alias
- the name of the alias- Returns:
- the aliased type
-
resolveAliasType
Returns a type of aliased type that is defined by assigning the type to the alias. If aliased type is not found, it returns alias.- Parameters:
alias
- the name of the alias- Returns:
- the aliased type
-
applyTransletNamePattern
Returns the translet name of the prefix and suffix are combined.- Parameters:
transletName
- the translet name- Returns:
- the string
-
getAssistantLocal
Gets the assistant local.- Returns:
- the assistant local
-
backupAssistantLocal
Backup the assistant local.- Returns:
- the assistant local
-
restoreAssistantLocal
Restore the assistant local.- Parameters:
oldAssistantLocal
- the old assistant local
-
isPointcutPatternVerifiable
public boolean isPointcutPatternVerifiable()Returns whether the pointcut pattern validation is required.- Returns:
- true if pointcut pattern validation is required
-
resolveBeanClass
- Throws:
IllegalRuleException
-
resolveFactoryBeanClass
Resolve bean class for factory bean rule.- Parameters:
beanRule
- the bean rule- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveAdviceBeanClass
Resolve bean class for the aspect rule.- Parameters:
aspectRule
- the aspect rule- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveActionBeanClass
public void resolveActionBeanClass(@NonNull InvokeActionRule invokeActionRule) throws IllegalRuleException Resolve bean class for bean method action rule.- Parameters:
invokeActionRule
- the invoke action rule- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveBeanClass
Resolve bean class.- Parameters:
itemRule
- the item rule- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveBeanClass
Resolve bean class for token.- Parameters:
tokens
- an array of tokens- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveBeanClass
Resolve bean class for token.- Parameters:
token
- the token- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveBeanClass
Resolve bean class for the autowire rule.- Parameters:
autowireRule
- the autowire rule- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveBeanClass
Resolve bean class for the schedule rule.- Parameters:
scheduleRule
- the schedule rule- Throws:
IllegalRuleException
- if an illegal rule is found
-
resolveBeanClass
Resolve bean class for the template rule.- Parameters:
templateRule
- the template rule- Throws:
IllegalRuleException
- if an illegal rule is found
-
reserveBeanReference
-
reserveBeanReference
-
reserveBeanReference
public void reserveBeanReference(String beanId, Class<?> beanClass, BeanReferenceable referenceable) -
getBeanReferenceInspector
Returns the bean reference inspector.- Returns:
- the bean reference inspector
-
addAspectRule
Adds the aspect rule.- Parameters:
aspectRule
- the aspect rule to add- Throws:
IllegalRuleException
- if an illegal rule is found
-
addBeanRule
Adds the bean rule.- Parameters:
beanRule
- the bean rule to add- Throws:
IllegalRuleException
- if an error occurs while adding a bean rule
-
addInnerBeanRule
- Throws:
IllegalRuleException
-
addScheduleRule
Adds the schedule rule.- Parameters:
scheduleRule
- the schedule rule to add- Throws:
IllegalRuleException
- if an illegal rule is found
-
addTransletRule
Add the translet rule.- Parameters:
transletRule
- the translet rule to add- Throws:
IllegalRuleException
- if an illegal rule is found
-
addTemplateRule
Add the template rule.- Parameters:
templateRule
- the template rule to add- Throws:
IllegalRuleException
- if an illegal rule is found
-
getAspectRuleRegistry
Gets the aspect rule registry.- Returns:
- the aspect rule registry
-
getBeanRuleRegistry
Returns the bean rule registry.- Returns:
- the bean rule registry
-
getScheduleRuleRegistry
Returns the schedule rule registry.- Returns:
- the template rule registry
-
getTransletRuleRegistry
Returns the translet rule registry.- Returns:
- the translet rule registry
-
getTemplateRuleRegistry
Returns the template rule registry.- Returns:
- the template rule registry
-
getAspectRules
Returns all Aspect rules.- Returns:
- the aspect rules
-
getBeanRules
Returns all bean rules.- Returns:
- the bean rules
-
getScheduleRules
Returns all schedule rules.- Returns:
- the schedule rules
-
getTransletRules
Returns all translet rules.- Returns:
- the translet rules
-
getTemplateRules
Returns all template rules.- Returns:
- the template rules
-
getRuleAppendHandler
Returns the rule append handler.- Returns:
- the rule append handler
-
setRuleAppendHandler
Sets the rule append handler.- Parameters:
ruleAppendHandler
- the new rule append handler
-
clearCurrentRuleAppender
public void clearCurrentRuleAppender()Removes the last rule appender after rule parsing is complete. -
profiling
-
profiling
-