注释类型 EnableMBeanExport
@Target(TYPE) @Retention(RUNTIME) @Documented @Import(MBeanExportConfiguration.class) public @interface EnableMBeanExport
Enables default exporting of all standardMBean
s from the Spring context, as well as well all@ManagedResource
annotated beans.The resulting
MBeanExporter
bean is defined under the name "mbeanExporter". Alternatively, consider defining a customAnnotationMBeanExporter
bean explicitly.This annotation is modeled after and functionally equivalent to Spring XML's
<context:mbean-export/>
element.- 从以下版本开始:
- 3.2
- 作者:
- Phillip Webb
- 另请参阅:
MBeanExportConfiguration
可选元素概要
可选元素 修饰符和类型 可选元素 说明 String
defaultDomain
The default domain to use when generating JMX ObjectNames.RegistrationPolicy
registration
The policy to use when attempting to register an MBean under anObjectName
that already exists.String
server
The 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 anObjectName
that already exists. Defaults toRegistrationPolicy.FAIL_ON_EXISTING
.- 默认值:
- org.springframework.jmx.support.RegistrationPolicy.FAIL_ON_EXISTING