@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| Modifier and Type | Class and Description |
|---|---|
static class |
MBeanExportConfiguration.SpecificPlatform |
| Constructor and Description |
|---|
MBeanExportConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface ImportAwarepublic void setEnvironment(org.springframework.core.env.Environment environment)
EnvironmentAwareEnvironment that this component runs in.setEnvironment in interface EnvironmentAwarepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware@Bean(name="mbeanExporter") @Role(value=2) public AnnotationMBeanExporter mbeanExporter()