Class AnnotationMBeanExporter

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.SmartInitializingSingleton, MBeanExportOperations

public class AnnotationMBeanExporter extends MBeanExporter
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:
  • Constructor Details

    • AnnotationMBeanExporter

      public AnnotationMBeanExporter()
  • Method Details

    • 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:
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
      Description copied from class: MBeanExporter
      This callback is only required for resolution of bean names in the "beans" Map and for auto-detection of MBeans (in the latter case, a ListableBeanFactory is required).
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Overrides:
      setBeanFactory in class MBeanExporter
      See Also: