@Configuration public class MBeanExportConfiguration extends Object implements ImportAware, 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| Constructor and Description |
|---|
MBeanExportConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationMBeanExporter |
mbeanExporter() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
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 setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansException@Bean(name="mbeanExporter") @Role(value=2) public AnnotationMBeanExporter mbeanExporter()