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
-
Constructor Summary
Constructors Constructor Description MessageHistoryConfigurer()
-
Method Summary
Modifier and Type Method Description String
getComponentNamePatternsString()
int
getPhase()
boolean
isAutoStartup()
boolean
isRunning()
void
postProcessBeforeDestruction(Object bean, String beanName)
Object
postProcessBeforeInitialization(Object bean, String beanName)
boolean
requiresDestruction(Object bean)
void
setAutoStartup(boolean autoStartup)
void
setBeanFactory(BeanFactory beanFactory)
void
setComponentNamePatterns(String[] componentNamePatterns)
The patterns for which components will be tracked; default '*' (all trackable components).void
setComponentNamePatternsSet(Set<String> componentNamePatternsSet)
The patterns for which components will be tracked; default '*' (all trackable components).void
setComponentNamePatternsString(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
-
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:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
requiresDestruction
- Specified by:
requiresDestruction
in interfaceDestructionAwareBeanPostProcessor
-
postProcessBeforeDestruction
- Specified by:
postProcessBeforeDestruction
in interfaceDestructionAwareBeanPostProcessor
- Throws:
BeansException
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceLifecycle
- Specified by:
isRunning
in interfaceManageableLifecycle
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceSmartLifecycle
-
setPhase
public void setPhase(int phase) -
getPhase
public int getPhase()- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
-
start
- Specified by:
start
in interfaceLifecycle
- Specified by:
start
in interfaceManageableLifecycle
-
stop
- Specified by:
stop
in interfaceLifecycle
- Specified by:
stop
in interfaceManageableLifecycle
-