Class MBeanExportConfiguration
java.lang.Object
org.springframework.context.annotation.MBeanExportConfiguration
- All Implemented Interfaces:
- Aware, BeanFactoryAware, ImportAware, EnvironmentAware
@Configuration(proxyBeanMethods=false)
@Role(2)
public class MBeanExportConfiguration
extends Object
implements ImportAware, EnvironmentAware, 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.
- Since:
- 3.2
- Author:
- Phillip Webb, Chris Beams
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetBeanFactory(BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance.voidsetEnvironment(Environment environment) Set theEnvironmentthat this component runs in.voidsetImportMetadata(AnnotationMetadata importMetadata) Set the annotation metadata of the importing @Configurationclass.
- 
Constructor Details- 
MBeanExportConfigurationpublic MBeanExportConfiguration()
 
- 
- 
Method Details- 
setImportMetadataDescription copied from interface:ImportAwareSet the annotation metadata of the importing @Configurationclass.- Specified by:
- setImportMetadatain interface- ImportAware
 
- 
setEnvironmentDescription copied from interface:EnvironmentAwareSet theEnvironmentthat this component runs in.- Specified by:
- setEnvironmentin interface- EnvironmentAware
 
- 
setBeanFactoryDescription copied from interface:BeanFactoryAwareCallback that supplies the owning factory to a bean instance.Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean.afterPropertiesSet()or a custom init-method.- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Parameters:
- beanFactory- owning BeanFactory (never- null). The bean can immediately call methods on the factory.
- See Also:
 
- 
mbeanExporter
 
-