org.springframework.jmx.export.metadata

## 接口 JmxAttributeSource

- 所有已知实现类:
    AnnotationJmxAttributeSource

      public interface JmxAttributeSource

  Interface used by the `MetadataMBeanInfoAssembler` to read source-level metadata from a managed resource's class.
  从以下版本开始:
    1.2
  作者:
    Rob Harrop, Jennifer Hickey
  另请参阅:
    `MetadataMBeanInfoAssembler.setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource)`, `MBeanExporter.setAssembler(org.springframework.jmx.export.assembler.MBeanInfoAssembler)`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `ManagedAttribute` | `getManagedAttribute(Method method)` Implementations should return an instance of `ManagedAttribute` if the supplied `Method` has the corresponding metadata.
    `ManagedMetric` | `getManagedMetric(Method method)` Implementations should return an instance of `ManagedMetric` if the supplied `Method` has the corresponding metadata.
    `ManagedNotification[]` | `getManagedNotifications(Class<?> clazz)` Implementations should return an array of `ManagedNotifications` if the supplied the `Class` has the corresponding metadata.
    `ManagedOperation` | `getManagedOperation(Method method)` Implementations should return an instance of `ManagedOperation` if the supplied `Method` has the corresponding metadata.
    `ManagedOperationParameter[]` | `getManagedOperationParameters(Method method)` Implementations should return an array of `ManagedOperationParameter` if the supplied `Method` has the corresponding metadata.
    `ManagedResource` | `getManagedResource(Class<?> clazz)` Implementations should return an instance of `ManagedResource` if the supplied `Class` has the appropriate metadata.

- - ### 方法详细资料

    - #### getManagedResource

          @Nullable
          ManagedResource getManagedResource(Class<?> clazz)
                                                 throws InvalidMetadataException

      Implementations should return an instance of `ManagedResource` if the supplied `Class` has the appropriate metadata. Otherwise should return `null`.
      参数:
        `clazz` - the class to read the attribute data from
      返回:
        the attribute, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedAttribute

          @Nullable
          ManagedAttribute getManagedAttribute(Method method)
                                                   throws InvalidMetadataException

      Implementations should return an instance of `ManagedAttribute` if the supplied `Method` has the corresponding metadata. Otherwise should return `null`.
      参数:
        `method` - the method to read the attribute data from
      返回:
        the attribute, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedMetric

          @Nullable
          ManagedMetric getManagedMetric(Method method)
                                             throws InvalidMetadataException

      Implementations should return an instance of `ManagedMetric` if the supplied `Method` has the corresponding metadata. Otherwise should return `null`.
      参数:
        `method` - the method to read the attribute data from
      返回:
        the metric, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedOperation

          @Nullable
          ManagedOperation getManagedOperation(Method method)
                                                   throws InvalidMetadataException

      Implementations should return an instance of `ManagedOperation` if the supplied `Method` has the corresponding metadata. Otherwise should return `null`.
      参数:
        `method` - the method to read the attribute data from
      返回:
        the attribute, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedOperationParameters

          ManagedOperationParameter[] getManagedOperationParameters(Method method)
                                                             throws InvalidMetadataException

      Implementations should return an array of `ManagedOperationParameter` if the supplied `Method` has the corresponding metadata. Otherwise should return an empty array if no metadata is found.
      参数:
        `method` - the `Method` to read the metadata from
      返回:
        the parameter information.
      抛出:
        `InvalidMetadataException` - in the case of invalid attributes.

    - #### getManagedNotifications

          ManagedNotification[] getManagedNotifications(Class<?> clazz)
                                                 throws InvalidMetadataException

      Implementations should return an array of `ManagedNotifications` if the supplied the `Class` has the corresponding metadata. Otherwise should return an empty array.
      参数:
        `clazz` - the `Class` to read the metadata from
      返回:
        the notification information
      抛出:
        `InvalidMetadataException` - in the case of invalid metadata