Top Description Fields Constructors Methods
org.springframework.context.annotation

public Class MBeanExportConfiguration

extends Object
implements ImportAware, EnvironmentAware, BeanFactoryAware
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.Aware, org.springframework.context.EnvironmentAware, org.springframework.context.annotation.ImportAware
Annotations
@Configuration
proxyBeanMethods:false
@Role:2
Imports
java.util.Map, javax.management.MBeanServer, org.springframework.beans.factory.BeanFactory, .BeanFactoryAware, org.springframework.beans.factory.config.BeanDefinition, org.springframework.context.EnvironmentAware, org.springframework.core.annotation.AnnotationAttributes, org.springframework.core.env.Environment, org.springframework.core.type.AnnotationMetadata, org.springframework.jmx.export.annotation.AnnotationMBeanExporter, org.springframework.jmx.support.RegistrationPolicy, org.springframework.lang.Nullable, org.springframework.util.Assert, .StringUtils

@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.

Authors
Phillip Webb, Chris Beams
Since
3.2
See Also
EnableMBeanExport

Field Summary

Modifier and TypeField and Description
private BeanFactory
private AnnotationAttributes
private Environment
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AnnotationMBeanExporter
public void
setBeanFactory(BeanFactory
owning BeanFactory (never null). The bean can immediately call methods on the factory.
beanFactory
)

Implements org.springframework.beans.factory.BeanFactoryAware.setBeanFactory.

Callback that supplies the owning factory to a bean instance.

public void
setEnvironment(Environment environment)

Implements org.springframework.context.EnvironmentAware.setEnvironment.

Set the Environment that this component runs in.

public void
setImportMetadata(AnnotationMetadata importMetadata)

Implements org.springframework.context.annotation.ImportAware.setImportMetadata.

Set the annotation metadata of the importing @Configuration class.

private void
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanFactoryback to summary
private BeanFactory beanFactory
Annotations
@Nullable
enableMBeanExportback to summary
private AnnotationAttributes enableMBeanExport
Annotations
@Nullable
environmentback to summary
private Environment environment
Annotations
@Nullable
MBEAN_EXPORTER_BEAN_NAMEback to summary
private static final String MBEAN_EXPORTER_BEAN_NAME

Constructor Detail

MBeanExportConfigurationback to summary
public MBeanExportConfiguration()

Method Detail

mbeanExporterback to summary
public AnnotationMBeanExporter mbeanExporter()
Annotations
@Bean
name:mbeanExporter
@Role:2
setBeanFactoryback to summary
public void setBeanFactory(BeanFactory beanFactory)

Implements org.springframework.beans.factory.BeanFactoryAware.setBeanFactory.

Doc from org.springframework.beans.factory.BeanFactoryAware.setBeanFactory.

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.

Parameters
beanFactory:BeanFactory

owning BeanFactory (never null). The bean can immediately call methods on the factory.

Annotations
@Override
setEnvironmentback to summary
public void setEnvironment(Environment environment)

Implements org.springframework.context.EnvironmentAware.setEnvironment.

Doc from org.springframework.context.EnvironmentAware.setEnvironment.

Set the Environment that this component runs in.

Annotations
@Override
setImportMetadataback to summary
public void setImportMetadata(AnnotationMetadata importMetadata)

Implements org.springframework.context.annotation.ImportAware.setImportMetadata.

Doc from org.springframework.context.annotation.ImportAware.setImportMetadata.

Set the annotation metadata of the importing @Configuration class.

Annotations
@Override
setupDomainback to summary
private void setupDomain(AnnotationMBeanExporter exporter, AnnotationAttributes enableMBeanExport)
setupRegistrationPolicyback to summary
private void setupRegistrationPolicy(AnnotationMBeanExporter exporter, AnnotationAttributes enableMBeanExport)
setupServerback to summary
private void setupServer(AnnotationMBeanExporter exporter, AnnotationAttributes enableMBeanExport)