@Configuration @ConditionalOnClass(value=org.springframework.jmx.export.MBeanExporter.class) public class JmxAutoConfiguration extends Object
Auto-configuration
to enable/disable Spring's
EnableMBeanExport
mechanism based on configuration properties.
To disable auto export of annotation beans set spring.jmx.enabled: false
.
Constructor and Description |
---|
JmxAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
AnnotationMBeanExporter |
mbeanExporter() |
MBeanServerFactoryBean |
mbeanServer() |
ParentAwareNamingStrategy |
objectNamingStrategy() |
@Bean @ConditionalOnMissingBean(value=org.springframework.jmx.export.MBeanExporter.class, search=CURRENT) public AnnotationMBeanExporter mbeanExporter()
@Bean @ConditionalOnMissingBean(value=org.springframework.jmx.export.naming.ObjectNamingStrategy.class) public ParentAwareNamingStrategy objectNamingStrategy()
@Bean @ConditionalOnMissingBean(value=javax.management.MBeanServer.class) public MBeanServerFactoryBean mbeanServer()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.