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
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPhase()booleanbooleanvoidpostProcessBeforeDestruction(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName) booleanrequiresDestruction(Object bean) voidsetAutoStartup(boolean autoStartup) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetComponentNamePatterns(String[] componentNamePatterns) The patterns for which components will be tracked; default '*' (all trackable components).voidsetComponentNamePatternsSet(Set<String> componentNamePatternsSet) The patterns for which components will be tracked; default '*' (all trackable components).voidsetComponentNamePatternsString(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, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitializationMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
MessageHistoryConfigurer
public MessageHistoryConfigurer()
-
-
Method Details
-
setComponentNamePatterns
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(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
-
setComponentNamePatternsSet
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 Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
requiresDestruction
- Specified by:
requiresDestructionin interfaceorg.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
-
postProcessBeforeDestruction
public void postProcessBeforeDestruction(Object bean, 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
-