@Configuration public class MBeanExportConfiguration extends Object implements ImportAware, EnvironmentAware, org.springframework.beans.factory.BeanFactoryAware
@Configuration class that registers a AnnotationMBeanExporter bean.
This configuration class is automatically imported when using the
EnableMBeanExport annotation. See its javadoc for complete usage details.
EnableMBeanExport| 限定符和类型 | 类和说明 |
|---|---|
static class |
MBeanExportConfiguration.SpecificPlatform |
| 构造器和说明 |
|---|
MBeanExportConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
AnnotationMBeanExporter |
mbeanExporter() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment)
Set the
Environment that this component runs in. |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @
Configuration class. |
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
ImportAwareConfiguration class.setImportMetadata 在接口中 ImportAwarepublic void setEnvironment(org.springframework.core.env.Environment environment)
EnvironmentAwareEnvironment that this component runs in.setEnvironment 在接口中 EnvironmentAwarepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware@Bean(name="mbeanExporter") @Role(value=2) public AnnotationMBeanExporter mbeanExporter()