类 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
@Configurationclass that registers aAnnotationMBeanExporterbean.This configuration class is automatically imported when using the
EnableMBeanExportannotation. See its javadoc for complete usage details.- 从以下版本开始:
- 3.2
- 作者:
- Phillip Webb, Chris Beams
- 另请参阅:
EnableMBeanExport
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classMBeanExportConfiguration.SpecificPlatformSpecific platforms that might need custom MBean handling.
构造器概要
构造器 构造器 说明 MBeanExportConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AnnotationMBeanExportermbeanExporter()voidsetBeanFactory(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.
构造器详细资料
MBeanExportConfiguration
public MBeanExportConfiguration()
方法详细资料
setImportMetadata
public void setImportMetadata(AnnotationMetadata importMetadata)
从接口复制的说明:ImportAwareSet the annotation metadata of the importing @Configurationclass.- 指定者:
setImportMetadata在接口中ImportAware
setEnvironment
public void setEnvironment(Environment environment)
从接口复制的说明:EnvironmentAwareSet theEnvironmentthat this component runs in.- 指定者:
setEnvironment在接口中EnvironmentAware
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
从接口复制的说明: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.- 指定者:
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()