@Configuration public class MBeanExportConfiguration extends java.lang.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
Specific platforms that might need custom MBean handling.
|
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)
ImportAware
Configuration
class.setImportMetadata
in interface ImportAware
public void setEnvironment(org.springframework.core.env.Environment environment)
EnvironmentAware
Environment
that this component runs in.setEnvironment
in interface EnvironmentAware
public 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()