类 MBeanExportConfiguration
- java.lang.Object
- org.springframework.context.annotation.MBeanExportConfiguration
- 所有已实现的接口:
Aware
,BeanFactoryAware
,ImportAware
,EnvironmentAware
@Configuration @Role(2) public class MBeanExportConfiguration extends Object implements ImportAware, EnvironmentAware, BeanFactoryAware
@Configuration
class that registers aAnnotationMBeanExporter
bean.This configuration class is automatically imported when using the
EnableMBeanExport
annotation. See its javadoc for complete usage details.- 从以下版本开始:
- 3.2
- 作者:
- Phillip Webb, Chris Beams
- 另请参阅:
EnableMBeanExport
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
MBeanExportConfiguration.SpecificPlatform
Specific platforms that might need custom MBean handling.
构造器概要
构造器 构造器 说明 MBeanExportConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AnnotationMBeanExporter
mbeanExporter()
void
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance.void
setEnvironment(Environment environment)
Set theEnvironment
that this component runs in.void
setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @Configuration
class.
构造器详细资料
MBeanExportConfiguration
public MBeanExportConfiguration()
方法详细资料
setImportMetadata
public void setImportMetadata(AnnotationMetadata importMetadata)
从接口复制的说明:ImportAware
Set the annotation metadata of the importing @Configuration
class.- 指定者:
setImportMetadata
在接口中ImportAware
setEnvironment
public void setEnvironment(Environment environment)
从接口复制的说明:EnvironmentAware
Set theEnvironment
that this component runs in.- 指定者:
setEnvironment
在接口中EnvironmentAware
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
从接口复制的说明:BeanFactoryAware
Callback 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.- 指定者:
setBeanFactory
在接口中BeanFactoryAware
- 参数:
beanFactory
- owning BeanFactory (nevernull
). The bean can immediately call methods on the factory.- 另请参阅:
BeanInitializationException
mbeanExporter
@Bean(name="mbeanExporter") @Role(2) public AnnotationMBeanExporter mbeanExporter()