Annotation Interface EnableMBeanExport


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface EnableMBeanExport
Enables default exporting of all standard MBeans from the Framework context, as well as well 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 Framework XML's <context:mbean-export/> element.

从以下版本开始:
4.0 2022/3/7 23:06
作者:
Phillip Webb, Harry Yang
另请参阅:
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The default domain to use when generating JMX ObjectNames.
    The policy to use when attempting to register an MBean under an ObjectName that already exists.
    The bean name of the MBeanServer to which MBeans should be exported.
  • 元素详细资料

    • defaultDomain

      String defaultDomain
      The default domain to use when generating JMX ObjectNames.
      默认值:
      ""
    • server

      String server
      The bean name of the MBeanServer to which MBeans should be exported. Default is to use the platform's default MBeanServer.
      默认值:
      ""
    • registration

      RegistrationPolicy registration
      The policy to use when attempting to register an MBean under an ObjectName that already exists. Defaults to RegistrationPolicy.FAIL_ON_EXISTING.
      默认值:
      FAIL_ON_EXISTING