org.springframework.jmx.export.annotation
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, MBeanExportOperations
public class AnnotationMBeanExporter
- extends MBeanExporter
Convenient subclass of Spring's standard 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.
- Since:
- 2.5
- Author:
- Juergen Hoeller
Method Summary |
void |
setDefaultDomain(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.MBeanExporter |
adaptMBeanIfPossible, afterPropertiesSet, createAndConfigureMBean, createModelMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeanFactory, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationMBeanExporter
public AnnotationMBeanExporter()
setDefaultDomain
public void setDefaultDomain(String defaultDomain)
- Specify 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.
- See Also:
MetadataNamingStrategy.setDefaultDomain(java.lang.String)