Class MessageHistoryConfigurer

java.lang.Object
org.springframework.integration.history.MessageHistoryConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, ManageableLifecycle, ManageableSmartLifecycle

@ManagedResource @IntegrationManagedResource public class MessageHistoryConfigurer extends Object implements ManageableSmartLifecycle, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
Since:
2.0
  • Constructor Details

    • MessageHistoryConfigurer

      public MessageHistoryConfigurer()
  • Method Details

    • setComponentNamePatterns

      public void setComponentNamePatterns(String[] componentNamePatterns)
      The patterns for which components will be tracked; default '*' (all trackable components). Cannot be changed if isRunning(); invoke stop() first.
      Parameters:
      componentNamePatterns - The patterns.
    • setComponentNamePatternsString

      @ManagedAttribute(description="comma-delimited list of patterns; must invoke stop() before changing.") public void setComponentNamePatternsString(String componentNamePatterns)
      A comma-delimited list of patterns for which components will be tracked; default '*' (all trackable components). Cannot be changed if isRunning(); invoke stop() first.
      Parameters:
      componentNamePatterns - The patterns.
    • getComponentNamePatternsString

      @ManagedAttribute public String getComponentNamePatternsString()
    • setComponentNamePatternsSet

      public void setComponentNamePatternsSet(Set<String> componentNamePatternsSet)
      The patterns for which components will be tracked; default '*' (all trackable components). Cannot be changed if isRunning(); invoke stop() first. All members of the set must canonically represent the same patterns - allows multiple EnableMessageHistory annotations as long they all have the same patterns.
      Parameters:
      componentNamePatternsSet - A set of lists of comma-delimited patterns.
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • requiresDestruction

      public boolean requiresDestruction(Object bean)
      Specified by:
      requiresDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
    • postProcessBeforeDestruction

      public void postProcessBeforeDestruction(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
      Specified by:
      isRunning in interface ManageableLifecycle
    • setAutoStartup

      public void setAutoStartup(boolean autoStartup)
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • setPhase

      public void setPhase(int phase)
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • start

      @ManagedOperation public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
      Specified by:
      start in interface ManageableLifecycle
    • stop

      @ManagedOperation public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
      Specified by:
      stop in interface ManageableLifecycle