@ManagedResource @IntegrationManagedResource public class MessageHistoryConfigurer extends Object implements ManageableSmartLifecycle, BeanFactoryAware, DestructionAwareBeanPostProcessor
DEFAULT_PHASE
Constructor and Description |
---|
MessageHistoryConfigurer() |
Modifier and Type | Method and 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
stop
postProcessAfterInitialization
public void setComponentNamePatterns(String[] componentNamePatterns)
isRunning()
; invoke stop()
first.componentNamePatterns
- The patterns.@ManagedAttribute(description="comma-delimited list of patterns; must invoke stop() before changing.") public void setComponentNamePatternsString(String componentNamePatterns)
isRunning()
; invoke stop()
first.componentNamePatterns
- The patterns.@ManagedAttribute public String getComponentNamePatternsString()
public void setComponentNamePatternsSet(Set<String> componentNamePatternsSet)
isRunning()
; invoke stop()
first.
All members of the set must canonically represent the same patterns - allows multiple
EnableMessageHistory annotations as long they all have the same patterns.componentNamePatternsSet
- A set of lists of comma-delimited patterns.public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException
postProcessBeforeInitialization
in interface BeanPostProcessor
BeansException
public boolean requiresDestruction(Object bean)
requiresDestruction
in interface DestructionAwareBeanPostProcessor
public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException
postProcessBeforeDestruction
in interface DestructionAwareBeanPostProcessor
BeansException
public boolean isRunning()
isRunning
in interface Lifecycle
isRunning
in interface ManageableLifecycle
public void setAutoStartup(boolean autoStartup)
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public void setPhase(int phase)
public int getPhase()
getPhase
in interface Phased
getPhase
in interface SmartLifecycle
@ManagedOperation public void start()
start
in interface Lifecycle
start
in interface ManageableLifecycle
@ManagedOperation public void stop()
stop
in interface Lifecycle
stop
in interface ManageableLifecycle