Class JmxAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(JmxProperties.class)
@ConditionalOnClass(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
.
- Since:
- 1.0.0
- Author:
- Christian Dupuis, Madhura Bhave, Artsiom Yudovin, Scott Frederick
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmbeanExporter
(ObjectNamingStrategy namingStrategy, BeanFactory beanFactory)
-
Constructor Details
-
JmxAutoConfiguration
-
-
Method Details
-
mbeanExporter
@Bean @Primary @ConditionalOnMissingBean(value=org.springframework.jmx.export.MBeanExporter.class, search=CURRENT) public AnnotationMBeanExporter mbeanExporter(ObjectNamingStrategy namingStrategy, BeanFactory beanFactory) -
objectNamingStrategy
@Bean @ConditionalOnMissingBean(value=org.springframework.jmx.export.naming.ObjectNamingStrategy.class, search=CURRENT) public ParentAwareNamingStrategy objectNamingStrategy() -
mbeanServer
-