@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.jmx.export.MBeanExporter.class) @ConditionalOnProperty(prefix="spring.jmx", name="enabled", havingValue="true") public class JmxAutoConfiguration extends Object
Auto-configuration
to enable/disable Spring's
@EnableMBeanExport
mechanism based on configuration
properties.
To enable auto export of annotation beans set spring.jmx.enabled: true
.
Constructor and Description |
---|
JmxAutoConfiguration(org.springframework.core.env.Environment environment) |
Modifier and Type | Method and Description |
---|---|
org.springframework.jmx.export.annotation.AnnotationMBeanExporter |
mbeanExporter(org.springframework.jmx.export.naming.ObjectNamingStrategy namingStrategy,
org.springframework.beans.factory.BeanFactory beanFactory) |
MBeanServer |
mbeanServer() |
ParentAwareNamingStrategy |
objectNamingStrategy() |
public JmxAutoConfiguration(org.springframework.core.env.Environment environment)
@Bean @Primary @ConditionalOnMissingBean(value=org.springframework.jmx.export.MBeanExporter.class, search=CURRENT) public org.springframework.jmx.export.annotation.AnnotationMBeanExporter mbeanExporter(org.springframework.jmx.export.naming.ObjectNamingStrategy namingStrategy, org.springframework.beans.factory.BeanFactory beanFactory)
@Bean @ConditionalOnMissingBean(value=org.springframework.jmx.export.naming.ObjectNamingStrategy.class, search=CURRENT) public ParentAwareNamingStrategy objectNamingStrategy()
@Bean @ConditionalOnMissingBean public MBeanServer mbeanServer()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.