public class AnnotationMBeanExporter extends MBeanExporter
MBeanExporter,
activating Java 5 annotation usage for JMX exposure of Spring beans:
ManagedResource, ManagedAttribute, ManagedOperation, etc.
Sets a MetadataNamingStrategy and a MetadataMBeanInfoAssembler
with an AnnotationJmxAttributeSource, and activates the
MBeanExporter.AUTODETECT_ALL mode by default.
AUTODETECT_ALL, AUTODETECT_ASSEMBLER, AUTODETECT_MBEAN, AUTODETECT_NONElogger, REGISTRATION_FAIL_ON_EXISTING, REGISTRATION_IGNORE_EXISTING, REGISTRATION_REPLACE_EXISTING, server| Constructor and Description |
|---|
AnnotationMBeanExporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
This callback is only required for resolution of bean names in the
"beans" Map and for
autodetection of MBeans (in the latter case, a
ListableBeanFactory is required). |
void |
setDefaultDomain(java.lang.String defaultDomain)
Specify the default domain to be used for generating ObjectNames
when no source-level metadata has been specified.
|
adaptMBeanIfPossible, 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, unregisterManagedResourcedoRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, setRegistrationBehavior, setRegistrationBehaviorName, setRegistrationPolicy, setServer, unregisterBeanspublic void setDefaultDomain(java.lang.String defaultDomain)
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.
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
MBeanExporter"beans" Map and for
autodetection of MBeans (in the latter case, a
ListableBeanFactory is required).setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwaresetBeanFactory in class MBeanExporterMBeanExporter.setBeans(java.util.Map<java.lang.String, java.lang.Object>),
MBeanExporter.setAutodetect(boolean)