@Configuration public class MBeanExportConfiguration extends java.lang.Object implements ImportAware, 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 |
|---|---|
private static class |
MBeanExportConfiguration.SpecificPlatform |
| Modifier and Type | Field and Description |
|---|---|
private AnnotationAttributes |
attributes |
private BeanFactory |
beanFactory |
private static java.lang.String |
MBEAN_EXPORTER_BEAN_NAME |
| Constructor and Description |
|---|
MBeanExportConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationMBeanExporter |
mbeanExporter() |
void |
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance.
|
void |
setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @
Configuration class. |
private void |
setupDomain(AnnotationMBeanExporter exporter) |
private void |
setupRegistrationPolicy(AnnotationMBeanExporter exporter) |
private void |
setupServer(AnnotationMBeanExporter exporter) |
private static final java.lang.String MBEAN_EXPORTER_BEAN_NAME
private AnnotationAttributes attributes
private BeanFactory beanFactory
public void setImportMetadata(AnnotationMetadata importMetadata)
ImportAwareConfiguration class.setImportMetadata in interface ImportAwarepublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryAwareInvoked after the population of normal bean properties
but before an initialization callback such as
InitializingBean.afterPropertiesSet() or a custom init-method.
setBeanFactory in interface BeanFactoryAwarebeanFactory - owning BeanFactory (never null).
The bean can immediately call methods on the factory.BeansException - in case of initialization errorsBeanInitializationException@Bean(name="mbeanExporter") @Role(value=2) public AnnotationMBeanExporter mbeanExporter()
private void setupDomain(AnnotationMBeanExporter exporter)
private void setupServer(AnnotationMBeanExporter exporter)
private void setupRegistrationPolicy(AnnotationMBeanExporter exporter)