Class ActivityRuleAssistant

java.lang.Object
com.aspectran.core.context.rule.assistant.ActivityRuleAssistant
Direct Known Subclasses:
ShallowContextRuleAssistant

public class ActivityRuleAssistant extends Object
The Class ActivityRuleAssistant.

Created: 2008. 04. 01 PM 10:25:35

  • Constructor Details

  • Method Details

    • prepare

      public void prepare()
    • release

      public void release()
    • getClassLoader

      public ClassLoader getClassLoader()
    • getApplicationAdapter

      public ApplicationAdapter getApplicationAdapter()
    • getBasePath

      public String getBasePath()
    • getEnvironmentProfiles

      public EnvironmentProfiles getEnvironmentProfiles()
    • getSettings

      public Map<DefaultSettingType,String> getSettings()
      Gets the settings.
      Returns:
      the settings
    • getSetting

      public Object getSetting(DefaultSettingType settingType)
      Gets the setting value.
      Parameters:
      settingType - the setting type
      Returns:
      the setting
    • putSetting

      public void putSetting(String name, String value) throws IllegalRuleException
      Puts the setting value.
      Parameters:
      name - the name
      value - the value
      Throws:
      IllegalRuleException - if an unknown setting name is found
    • applySettings

      public void applySettings()
      Apply settings.
    • getEnvironmentRules

      public List<EnvironmentRule> getEnvironmentRules()
      Gets the environment rules.
      Returns:
      the environment rules
    • addEnvironmentRule

      public void addEnvironmentRule(EnvironmentRule environmentRule)
      Adds the environment rule.
      Parameters:
      environmentRule - the environment rule
    • getTypeAliases

      public Map<String,String> getTypeAliases()
      Gets the type aliases.
      Returns:
      the type aliases
    • addTypeAlias

      public void addTypeAlias(String alias, String type)
      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 alias
      type - the type identifier that you are creating an alias for
    • getAliasedType

      public String getAliasedType(String alias)
      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

      public String resolveAliasType(String alias)
      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

      public String applyTransletNamePattern(String transletName)
      Returns the translet name of the prefix and suffix are combined.
      Parameters:
      transletName - the translet name
      Returns:
      the string
    • getAssistantLocal

      public AssistantLocal getAssistantLocal()
      Gets the assistant local.
      Returns:
      the assistant local
    • backupAssistantLocal

      public AssistantLocal backupAssistantLocal()
      Backup the assistant local.
      Returns:
      the assistant local
    • restoreAssistantLocal

      public void restoreAssistantLocal(AssistantLocal oldAssistantLocal)
      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

      public void resolveBeanClass(BeanRule beanRule) throws IllegalRuleException
      Throws:
      IllegalRuleException
    • resolveFactoryBeanClass

      public void resolveFactoryBeanClass(BeanRule beanRule) throws IllegalRuleException
      Resolve bean class for factory bean rule.
      Parameters:
      beanRule - the bean rule
      Throws:
      IllegalRuleException - if an illegal rule is found
    • resolveAdviceBeanClass

      public void resolveAdviceBeanClass(@NonNull AspectRule aspectRule) throws IllegalRuleException
      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

      public void resolveBeanClass(@Nullable ItemRule itemRule) throws IllegalRuleException
      Resolve bean class.
      Parameters:
      itemRule - the item rule
      Throws:
      IllegalRuleException - if an illegal rule is found
    • resolveBeanClass

      public void resolveBeanClass(@Nullable Token[] tokens) throws IllegalRuleException
      Resolve bean class for token.
      Parameters:
      tokens - an array of tokens
      Throws:
      IllegalRuleException - if an illegal rule is found
    • resolveBeanClass

      public void resolveBeanClass(Token token) throws IllegalRuleException
      Resolve bean class for token.
      Parameters:
      token - the token
      Throws:
      IllegalRuleException - if an illegal rule is found
    • resolveBeanClass

      public void resolveBeanClass(@Nullable AutowireRule autowireRule) throws IllegalRuleException
      Resolve bean class for the autowire rule.
      Parameters:
      autowireRule - the autowire rule
      Throws:
      IllegalRuleException - if an illegal rule is found
    • resolveBeanClass

      public void resolveBeanClass(ScheduleRule scheduleRule) throws IllegalRuleException
      Resolve bean class for the schedule rule.
      Parameters:
      scheduleRule - the schedule rule
      Throws:
      IllegalRuleException - if an illegal rule is found
    • resolveBeanClass

      public void resolveBeanClass(TemplateRule templateRule) throws IllegalRuleException
      Resolve bean class for the template rule.
      Parameters:
      templateRule - the template rule
      Throws:
      IllegalRuleException - if an illegal rule is found
    • reserveBeanReference

      public void reserveBeanReference(String beanId, BeanReferenceable referenceable)
    • reserveBeanReference

      public void reserveBeanReference(Class<?> beanClass, BeanReferenceable referenceable)
    • reserveBeanReference

      public void reserveBeanReference(String beanId, Class<?> beanClass, BeanReferenceable referenceable)
    • getBeanReferenceInspector

      public BeanReferenceInspector getBeanReferenceInspector()
      Returns the bean reference inspector.
      Returns:
      the bean reference inspector
    • addAspectRule

      public void addAspectRule(AspectRule aspectRule) throws IllegalRuleException
      Adds the aspect rule.
      Parameters:
      aspectRule - the aspect rule to add
      Throws:
      IllegalRuleException - if an illegal rule is found
    • addBeanRule

      public void addBeanRule(BeanRule beanRule) throws IllegalRuleException
      Adds the bean rule.
      Parameters:
      beanRule - the bean rule to add
      Throws:
      IllegalRuleException - if an error occurs while adding a bean rule
    • addInnerBeanRule

      public void addInnerBeanRule(BeanRule beanRule) throws IllegalRuleException
      Throws:
      IllegalRuleException
    • addScheduleRule

      public void addScheduleRule(ScheduleRule scheduleRule) throws IllegalRuleException
      Adds the schedule rule.
      Parameters:
      scheduleRule - the schedule rule to add
      Throws:
      IllegalRuleException - if an illegal rule is found
    • addTransletRule

      public void addTransletRule(TransletRule transletRule) throws IllegalRuleException
      Add the translet rule.
      Parameters:
      transletRule - the translet rule to add
      Throws:
      IllegalRuleException - if an illegal rule is found
    • addTemplateRule

      public void addTemplateRule(TemplateRule templateRule) throws IllegalRuleException
      Add the template rule.
      Parameters:
      templateRule - the template rule to add
      Throws:
      IllegalRuleException - if an illegal rule is found
    • getAspectRuleRegistry

      public AspectRuleRegistry getAspectRuleRegistry()
      Gets the aspect rule registry.
      Returns:
      the aspect rule registry
    • getBeanRuleRegistry

      public BeanRuleRegistry getBeanRuleRegistry()
      Returns the bean rule registry.
      Returns:
      the bean rule registry
    • getScheduleRuleRegistry

      public ScheduleRuleRegistry getScheduleRuleRegistry()
      Returns the schedule rule registry.
      Returns:
      the template rule registry
    • getTransletRuleRegistry

      public TransletRuleRegistry getTransletRuleRegistry()
      Returns the translet rule registry.
      Returns:
      the translet rule registry
    • getTemplateRuleRegistry

      public TemplateRuleRegistry getTemplateRuleRegistry()
      Returns the template rule registry.
      Returns:
      the template rule registry
    • getAspectRules

      public Collection<AspectRule> getAspectRules()
      Returns all Aspect rules.
      Returns:
      the aspect rules
    • getBeanRules

      public Collection<BeanRule> getBeanRules()
      Returns all bean rules.
      Returns:
      the bean rules
    • getScheduleRules

      public Collection<ScheduleRule> getScheduleRules()
      Returns all schedule rules.
      Returns:
      the schedule rules
    • getTransletRules

      public Collection<TransletRule> getTransletRules()
      Returns all translet rules.
      Returns:
      the translet rules
    • getTemplateRules

      public Collection<TemplateRule> getTemplateRules()
      Returns all template rules.
      Returns:
      the template rules
    • getRuleAppendHandler

      public RuleAppendHandler getRuleAppendHandler()
      Returns the rule append handler.
      Returns:
      the rule append handler
    • setRuleAppendHandler

      public void setRuleAppendHandler(RuleAppendHandler ruleAppendHandler)
      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

      public ItemRuleMap profiling(@NonNull ItemRuleMap newIrm, @Nullable ItemRuleMap oldIrm)