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 java.lang.Object
implements ManageableSmartLifecycle, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
Since:
2.0
  • Field Summary

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors 
    Constructor Description
    MessageHistoryConfigurer()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getComponentNamePatternsString()  
    int getPhase()  
    boolean isAutoStartup()  
    boolean isRunning()  
    void postProcessBeforeDestruction​(java.lang.Object bean, java.lang.String beanName)  
    java.lang.Object postProcessBeforeInitialization​(java.lang.Object bean, java.lang.String beanName)  
    boolean requiresDestruction​(java.lang.Object bean)  
    void setAutoStartup​(boolean autoStartup)  
    void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  
    void setComponentNamePatterns​(java.lang.String[] componentNamePatterns)
    The patterns for which components will be tracked; default '*' (all trackable components).
    void setComponentNamePatternsSet​(java.util.Set<java.lang.String> componentNamePatternsSet)
    The patterns for which components will be tracked; default '*' (all trackable components).
    void setComponentNamePatternsString​(java.lang.String componentNamePatterns)
    A comma-delimited list of patterns for which components will be tracked; default '*' (all trackable components).
    void setPhase​(int phase)  
    void start()  
    void stop()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor

    postProcessAfterInitialization

    Methods inherited from interface org.springframework.context.SmartLifecycle

    stop
  • Constructor Details

  • Method Details

    • setComponentNamePatterns

      public void setComponentNamePatterns​(java.lang.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​(java.lang.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 java.lang.String getComponentNamePatternsString()
    • setComponentNamePatternsSet

      public void setComponentNamePatternsSet​(java.util.Set<java.lang.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 java.lang.Object postProcessBeforeInitialization​(java.lang.Object bean, java.lang.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​(java.lang.Object bean)
      Specified by:
      requiresDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
    • postProcessBeforeDestruction

      public void postProcessBeforeDestruction​(java.lang.Object bean, java.lang.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