Class MessageHistoryConfigurer
java.lang.Object
org.springframework.integration.history.MessageHistoryConfigurer
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanPostProcessor,DestructionAwareBeanPostProcessor,Lifecycle,Phased,SmartLifecycle,ManageableLifecycle,ManageableSmartLifecycle
@ManagedResource
@IntegrationManagedResource
public class MessageHistoryConfigurer
extends Object
implements ManageableSmartLifecycle, BeanFactoryAware, DestructionAwareBeanPostProcessor
- Since:
- 2.0
- Author:
- Mark Fisher, Artem Bilan, Gary Russell
-
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(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
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-
requiresDestruction
- Specified by:
requiresDestructionin interfaceDestructionAwareBeanPostProcessor
-
postProcessBeforeDestruction
- Specified by:
postProcessBeforeDestructionin interfaceDestructionAwareBeanPostProcessor- Throws:
BeansException
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceLifecycle- Specified by:
isRunningin interfaceManageableLifecycle
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceSmartLifecycle
-
setPhase
public void setPhase(int phase) -
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
start
- Specified by:
startin interfaceLifecycle- Specified by:
startin interfaceManageableLifecycle
-
stop
- Specified by:
stopin interfaceLifecycle- Specified by:
stopin interfaceManageableLifecycle
-