@Configuration @ConditionalOnClass(value=org.springframework.jmx.export.MBeanExporter.class) @ConditionalOnProperty(prefix="spring.jmx", name="enabled", havingValue="true", matchIfMissing=true) public class JmxAutoConfiguration extends ObjectSE implements EnvironmentAware, BeanFactoryAware
Auto-configuration は、構成プロパティに基づいて Spring の EnableMBeanExport メカニズムを有効 / 無効にします。 アノテーション Bean の自動エクスポートを無効にするには spring.jmx.enabled: false を設定します。
| コンストラクターと説明 |
|---|
JmxAutoConfiguration() |
| 修飾子と型 | メソッドと説明 |
|---|---|
AnnotationMBeanExporter | mbeanExporter(ObjectNamingStrategy namingStrategy) |
MBeanServerSE | mbeanServer() |
ParentAwareNamingStrategy | objectNamingStrategy() |
void | setBeanFactory(BeanFactory beanFactory) |
void | setEnvironment(Environment environment) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setEnvironment(Environment environment)
EnvironmentAware 内の setEnvironment public void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryAware 内の setBeanFactory BeansException@Bean @Primary @ConditionalOnMissingBean(value=org.springframework.jmx.export.MBeanExporter.class, search=CURRENT) public AnnotationMBeanExporter mbeanExporter(ObjectNamingStrategy namingStrategy)
@Bean @ConditionalOnMissingBean(value=org.springframework.jmx.export.naming.ObjectNamingStrategy.class, search=CURRENT) public ParentAwareNamingStrategy objectNamingStrategy()
@Bean @ConditionalOnMissingBean public MBeanServerSE mbeanServer()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.