注释类型 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.- 从以下版本开始:
- 3.2
- 作者:
- Phillip Webb
- 另请参阅:
MBeanExportConfiguration
可选元素概要
可选元素 修饰符和类型 可选元素 说明 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.
元素详细资料
defaultDomain
String defaultDomain
The default domain to use when generating JMX ObjectNames.- 默认值:
- ""
registration
RegistrationPolicy registration
The policy to use when attempting to register an MBean under anObjectNamethat already exists. Defaults toRegistrationPolicy.FAIL_ON_EXISTING.- 默认值:
- org.springframework.jmx.support.RegistrationPolicy.FAIL_ON_EXISTING