Annotation Type EnableMBeanExport
@Target(TYPE) @Retention(RUNTIME) @Documented @Import(MBeanExportConfiguration.class) public @interface EnableMBeanExport
Enables default exporting of all standardMBeans from the Spring context, as well as well all@ManagedResourceannotated beans.The resulting
MBeanExporterbean is defined under the name "mbeanExporter". Alternatively, consider defining a customAnnotationMBeanExporterbean explicitly.This annotation is modeled after and functionally equivalent to Spring XML's
<context:mbean-export/>element.- Since:
- 3.2
- Author:
- Phillip Webb
- See Also:
MBeanExportConfiguration
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultDomainThe default domain to use when generating JMX ObjectNames.RegistrationPolicyregistrationThe policy to use when attempting to register an MBean under anObjectNamethat already exists.StringserverThe bean name of the MBeanServer to which MBeans should be exported.
Element Detail
defaultDomain
String defaultDomain
The default domain to use when generating JMX ObjectNames.- Default:
- ""
registration
RegistrationPolicy registration
The policy to use when attempting to register an MBean under anObjectNamethat already exists. Defaults toRegistrationPolicy.FAIL_ON_EXISTING.- Default:
- org.springframework.jmx.support.RegistrationPolicy.FAIL_ON_EXISTING