org.springframework.context.annotation

## 注释类型 EnableMBeanExport

-     @Target(value=TYPE)
       @Retention(value=RUNTIME)
       @Documented
       @Import(value=MBeanExportConfiguration.class)
      public @interface EnableMBeanExport

  Enables default exporting of all standard `MBean`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 custom `AnnotationMBeanExporter` 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 an `ObjectName` that already exists.
    `String` | `server` The bean name of the MBeanServer to which MBeans should be exported.

- - ### 元素详细资料

    - #### defaultDomain

          public abstract String defaultDomain

      The default domain to use when generating JMX ObjectNames.
      默认值:
        ""

  - - #### server

          public abstract String server

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

  - - #### registration

          public abstract RegistrationPolicy registration

      The policy to use when attempting to register an MBean under an `ObjectName` that already exists. Defaults to `RegistrationPolicy.FAIL_ON_EXISTING`.
      默认值:
        org.springframework.jmx.support.RegistrationPolicy.FAIL_ON_EXISTING