org.springframework.jmx.export

## 接口 MBeanExportOperations

- 所有已知实现类:
    AnnotationMBeanExporter, MBeanExporter

      public interface MBeanExportOperations

  Interface that defines the set of MBean export operations that are intended to be accessed by application developers during application runtime.

  This interface should be used to export application resources to JMX using Spring's management interface generation capabilties and, optionally, it's `ObjectName` generation capabilities.

  从以下版本开始:
    2.0
  作者:
    Rob Harrop
  另请参阅:
    `MBeanExporter`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `ObjectName` | `registerManagedResource(Object managedResource)` Register the supplied resource with JMX.
    `void` | `registerManagedResource(Object managedResource, ObjectName objectName)` Register the supplied resource with JMX.
    `void` | `unregisterManagedResource(ObjectName objectName)` Remove the specified MBean from the underlying MBeanServer registry.

- - ### 方法详细资料

    - #### registerManagedResource

          ObjectName registerManagedResource(Object managedResource)
                                      throws MBeanExportException

      Register the supplied resource with JMX. If the resource is not a valid MBean already, Spring will generate a management interface for it. The exact interface generated will depend on the implementation and its configuration. This call also generates an `ObjectName` for the managed resource and returns this to the caller.
      参数:
        `managedResource` - the resource to expose via JMX
      返回:
        the `ObjectName` under which the resource was exposed
      抛出:
        `MBeanExportException` - if Spring is unable to generate an `ObjectName` or register the MBean

    - #### registerManagedResource

          void registerManagedResource(Object managedResource,
                                       ObjectName objectName)
                                throws MBeanExportException

      Register the supplied resource with JMX. If the resource is not a valid MBean already, Spring will generate a management interface for it. The exact interface generated will depend on the implementation and its configuration.
      参数:
        `managedResource` - the resource to expose via JMX
        `objectName` - the `ObjectName` under which to expose the resource
      抛出:
        `MBeanExportException` - if Spring is unable to register the MBean

    - #### unregisterManagedResource

          void unregisterManagedResource(ObjectName objectName)

      Remove the specified MBean from the underlying MBeanServer registry.
      参数:
        `objectName` - the `ObjectName` of the resource to remove