public class IntegrationManagementConfigurer
extends java.lang.Object
implements org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
IntegrationManagement.
Configures counts, stats, logging for all (or selected) components.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MANAGEMENT_CONFIGURER_NAME
Bean name of the configurer.
|
| Constructor and Description |
|---|
IntegrationManagementConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSingletonsInstantiated() |
void |
onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String name) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanName(java.lang.String name) |
void |
setDefaultLoggingEnabled(boolean defaultLoggingEnabled)
Disable all logging in the normal message flow in framework components.
|
void |
setMetricsCaptor(MetricsCaptor metricsCaptor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String MANAGEMENT_CONFIGURER_NAME
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setDefaultLoggingEnabled(boolean defaultLoggingEnabled)
Exception logging (debug or otherwise) is not affected by this setting.
It has been found that in high-volume messaging environments, calls to methods such as
Log.isDebugEnabled() can be quite expensive
and account for an inordinate amount of CPU time.
Set this to false to disable logging by default in all framework components that implement
IntegrationManagement (channels, message handlers etc). This turns off logging such as
"PreSend on channel", "Received message" etc.
After the context is initialized, individual components can have their setting changed by invoking
IntegrationManagement.setLoggingEnabled(boolean).
defaultLoggingEnabled - defaults to true.public void setMetricsCaptor(@Nullable
MetricsCaptor metricsCaptor)
public void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonpublic java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
java.lang.String name)
throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>