org.springframework.jmx.export.annotation

## 类 AnnotationJmxAttributeSource

- java.lang.Object
- - org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource

- 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, JmxAttributeSource

      public class AnnotationJmxAttributeSource
      extends Object
      implements JmxAttributeSource, org.springframework.beans.factory.BeanFactoryAware

  Implementation of the `JmxAttributeSource` interface that reads annotations and exposes the corresponding attributes.
  从以下版本开始:
    1.2
  作者:
    Rob Harrop, Juergen Hoeller, Jennifer Hickey, Stephane Nicoll
  另请参阅:
    `ManagedResource`, `ManagedAttribute`, `ManagedOperation`

- - ### 构造器概要

    构造器
    构造器和说明
    `AnnotationJmxAttributeSource()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `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<?> beanClass)` Implementations should return an instance of `ManagedResource` if the supplied `Class` has the appropriate metadata.
    `void` | `setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### AnnotationJmxAttributeSource

          public AnnotationJmxAttributeSource()

  - ### 方法详细资料

    - #### setBeanFactory

          public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)

      指定者:
        `setBeanFactory` 在接口中 `org.springframework.beans.factory.BeanFactoryAware`

    - #### getManagedResource

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

      从接口复制的说明: `JmxAttributeSource`
      Implementations should return an instance of `ManagedResource` if the supplied `Class` has the appropriate metadata. Otherwise should return `null`.
      指定者:
        `getManagedResource` 在接口中 `JmxAttributeSource`
      参数:
        `beanClass` - the class to read the attribute data from
      返回:
        the attribute, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedAttribute

          @Nullable
          public ManagedAttribute getManagedAttribute(Method method)
                                                          throws InvalidMetadataException

      从接口复制的说明: `JmxAttributeSource`
      Implementations should return an instance of `ManagedAttribute` if the supplied `Method` has the corresponding metadata. Otherwise should return `null`.
      指定者:
        `getManagedAttribute` 在接口中 `JmxAttributeSource`
      参数:
        `method` - the method to read the attribute data from
      返回:
        the attribute, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedMetric

          @Nullable
          public ManagedMetric getManagedMetric(Method method)
                                                    throws InvalidMetadataException

      从接口复制的说明: `JmxAttributeSource`
      Implementations should return an instance of `ManagedMetric` if the supplied `Method` has the corresponding metadata. Otherwise should return `null`.
      指定者:
        `getManagedMetric` 在接口中 `JmxAttributeSource`
      参数:
        `method` - the method to read the attribute data from
      返回:
        the metric, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedOperation

          @Nullable
          public ManagedOperation getManagedOperation(Method method)
                                                          throws InvalidMetadataException

      从接口复制的说明: `JmxAttributeSource`
      Implementations should return an instance of `ManagedOperation` if the supplied `Method` has the corresponding metadata. Otherwise should return `null`.
      指定者:
        `getManagedOperation` 在接口中 `JmxAttributeSource`
      参数:
        `method` - the method to read the attribute data from
      返回:
        the attribute, or `null` if not found
      抛出:
        `InvalidMetadataException` - in case of invalid attributes

    - #### getManagedOperationParameters

          public ManagedOperationParameter[] getManagedOperationParameters(Method method)
                                                                    throws InvalidMetadataException

      从接口复制的说明: `JmxAttributeSource`
      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.
      指定者:
        `getManagedOperationParameters` 在接口中 `JmxAttributeSource`
      参数:
        `method` - the `Method` to read the metadata from
      返回:
        the parameter information.
      抛出:
        `InvalidMetadataException` - in the case of invalid attributes.

    - #### getManagedNotifications

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

      从接口复制的说明: `JmxAttributeSource`
      Implementations should return an array of `ManagedNotifications` if the supplied the `Class` has the corresponding metadata. Otherwise should return an empty array.
      指定者:
        `getManagedNotifications` 在接口中 `JmxAttributeSource`
      参数:
        `clazz` - the `Class` to read the metadata from
      返回:
        the notification information
      抛出:
        `InvalidMetadataException` - in the case of invalid metadata