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, Christian Tzolov
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getPhase()
boolean
boolean
void
postProcessBeforeDestruction
(Object bean, String beanName) 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
Methods 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:
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
-