类 JmxAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.EnvironmentAware
@Configuration @ConditionalOnClass(org.springframework.jmx.export.MBeanExporter.class) @ConditionalOnProperty(prefix="spring.jmx", name="enabled", havingValue="true", matchIfMissing=true) public class JmxAutoConfiguration extends Object implements org.springframework.context.EnvironmentAware, org.springframework.beans.factory.BeanFactoryAware
Auto-configuration
to enable/disable Spring'sEnableMBeanExport
mechanism based on configuration properties.To disable auto export of annotation beans set
spring.jmx.enabled: false
.
构造器概要
构造器 构造器 说明 JmxAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.jmx.export.annotation.AnnotationMBeanExporter
mbeanExporter(org.springframework.jmx.export.naming.ObjectNamingStrategy namingStrategy)
MBeanServer
mbeanServer()
ParentAwareNamingStrategy
objectNamingStrategy()
void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
void
setEnvironment(org.springframework.core.env.Environment environment)
构造器详细资料
JmxAutoConfiguration
public JmxAutoConfiguration()
方法详细资料
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- 指定者:
setBeanFactory
在接口中org.springframework.beans.factory.BeanFactoryAware
- 抛出:
org.springframework.beans.BeansException
mbeanExporter
@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)
objectNamingStrategy
@Bean @ConditionalOnMissingBean(value=org.springframework.jmx.export.naming.ObjectNamingStrategy.class, search=CURRENT) public ParentAwareNamingStrategy objectNamingStrategy()
mbeanServer
@Bean @ConditionalOnMissingBean(javax.management.MBeanServer.class) public MBeanServer mbeanServer()