Top Description Methods
org.springframework.context.annotation

public @Interface EnableMBeanExport

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
@Documented
@Import:MBeanExportConfiguration
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, org.springframework.jmx.export.annotation.AnnotationMBeanExporter, org.springframework.jmx.support.RegistrationPolicy

Enables default exporting of all standard MBeans from the Spring context, as well as all @ManagedResource annotated beans.

The resulting MBeanExporter bean is defined under the name "mbeanExporter". Alternatively, consider defining a custom AnnotationMBeanExporter bean explicitly.

This annotation is modeled after and functionally equivalent to Spring XML's <context:mbean-export/> element.

Author
Phillip Webb
Since
3.2
See Also
MBeanExportConfiguration

Method Summary

Modifier and TypeMethod and Description
public String
defaultDomain()

The default domain to use when generating JMX ObjectNames.

public RegistrationPolicy
registration()

The policy to use when attempting to register an MBean under an javax.management.ObjectName that already exists.

public String
server()

The bean name of the MBeanServer to which MBeans should be exported.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

defaultDomainback to summary
public String defaultDomain()

The default domain to use when generating JMX ObjectNames.

registrationback to summary
public RegistrationPolicy registration()

The policy to use when attempting to register an MBean under an javax.management.ObjectName that already exists. Defaults to RegistrationPolicy#FAIL_ON_EXISTING.

serverback to summary
public String server()

The bean name of the MBeanServer to which MBeans should be exported. Default is to use the platform's default MBeanServer.