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
-
Constructor Summary
Constructors Constructor Description MessageHistoryConfigurer() -
Method Summary
Modifier and Type Method Description java.lang.StringgetComponentNamePatternsString()intgetPhase()booleanisAutoStartup()booleanisRunning()voidpostProcessBeforeDestruction(java.lang.Object bean, java.lang.String beanName)java.lang.ObjectpostProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)booleanrequiresDestruction(java.lang.Object bean)voidsetAutoStartup(boolean autoStartup)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)voidsetComponentNamePatterns(java.lang.String[] componentNamePatterns)The patterns for which components will be tracked; default '*' (all trackable components).voidsetComponentNamePatternsSet(java.util.Set<java.lang.String> componentNamePatternsSet)The patterns for which components will be tracked; default '*' (all trackable components).voidsetComponentNamePatternsString(java.lang.String componentNamePatterns)A comma-delimited list of patterns for which components will be tracked; default '*' (all trackable components).voidsetPhase(int phase)voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MessageHistoryConfigurer
public MessageHistoryConfigurer()
-
-
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 ifisRunning(); invokestop()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 ifisRunning(); invokestop()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 ifisRunning(); invokestop()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:
setBeanFactoryin interfaceorg.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:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
requiresDestruction
public boolean requiresDestruction(java.lang.Object bean)- Specified by:
requiresDestructionin interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
-
postProcessBeforeDestruction
public void postProcessBeforeDestruction(java.lang.Object bean, java.lang.String beanName) throws org.springframework.beans.BeansException- Specified by:
postProcessBeforeDestructionin interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle- Specified by:
isRunningin interfaceManageableLifecycle
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
setPhase
public void setPhase(int phase) -
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
start
@ManagedOperation public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Specified by:
startin interfaceManageableLifecycle
-
stop
@ManagedOperation public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle- Specified by:
stopin interfaceManageableLifecycle
-