Class AnnotationMBeanExporter
java.lang.Object
org.springframework.jmx.support.MBeanRegistrationSupport
org.springframework.jmx.export.MBeanExporter
org.springframework.jmx.export.annotation.AnnotationMBeanExporter
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- DisposableBean,- InitializingBean,- SmartInitializingSingleton,- MBeanExportOperations
Convenient subclass of Spring's standard 
MBeanExporter,
 activating annotation usage for JMX exposure of Spring beans:
 ManagedResource, ManagedAttribute, ManagedOperation, etc.
 Sets a MetadataNamingStrategy and a MetadataMBeanInfoAssembler
 with an AnnotationJmxAttributeSource, and activates
 autodetection by default.
- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class org.springframework.jmx.export.MBeanExporterAUTODETECT_ALL, AUTODETECT_ASSEMBLER, AUTODETECT_MBEAN, AUTODETECT_NONEFields inherited from class org.springframework.jmx.support.MBeanRegistrationSupportlogger, server
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetBeanFactory(BeanFactory beanFactory) voidsetDefaultDomain(String defaultDomain) Specify the default domain to be used for generating ObjectNames when no source-level metadata has been specified.Methods inherited from class org.springframework.jmx.export.MBeanExporteradaptMBeanIfPossible, addExcludedBean, afterPropertiesSet, afterSingletonsInstantiated, createAndConfigureMBean, createModelMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResourceMethods inherited from class org.springframework.jmx.support.MBeanRegistrationSupportdoRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, setRegistrationPolicy, setServer, unregisterBeans
- 
Constructor Details- 
AnnotationMBeanExporterpublic AnnotationMBeanExporter()
 
- 
- 
Method Details- 
setDefaultDomainSpecify the default domain to be used for generating ObjectNames when no source-level metadata has been specified.The default is to use the domain specified in the bean name (if the bean name follows the JMX ObjectName syntax); else, the package name of the managed bean class. 
- 
setBeanFactoryDescription copied from class:MBeanExporterThis callback is only required for resolution of bean names in the"beans"Mapand for auto-detection of MBeans (in the latter case, aListableBeanFactoryis required).- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Overrides:
- setBeanFactoryin class- MBeanExporter
- Parameters:
- beanFactory- owning BeanFactory (never- null). The bean can immediately call methods on the factory.
- See Also:
 
 
-