org.springframework.beans.factory.annotation

## 接口 AnnotatedBeanDefinition

- 所有超级接口:
    org.springframework.core.AttributeAccessor, BeanDefinition, BeanMetadataElement
  所有已知实现类:
    AnnotatedGenericBeanDefinition

      public interface AnnotatedBeanDefinition
      extends BeanDefinition

  Extended `BeanDefinition` interface that exposes `AnnotationMetadata` about its bean class - without requiring the class to be loaded yet.
  从以下版本开始:
    2.5
  作者:
    Juergen Hoeller
  另请参阅:
    `AnnotatedGenericBeanDefinition`, `AnnotationMetadata`

- - ### 字段概要

    - ### 从接口继承的字段 org.springframework.beans.factory.config.BeanDefinition

      `ROLE_APPLICATION, ROLE_INFRASTRUCTURE, ROLE_SUPPORT, SCOPE_PROTOTYPE, SCOPE_SINGLETON`

  - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `org.springframework.core.type.MethodMetadata` | `getFactoryMethodMetadata()` Obtain metadata for this bean definition's factory method, if any.
    `org.springframework.core.type.AnnotationMetadata` | `getMetadata()` Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.

    - ### 从接口继承的方法 org.springframework.beans.factory.config.BeanDefinition

      `getBeanClassName, getConstructorArgumentValues, getDependsOn, getDescription, getFactoryBeanName, getFactoryMethodName, getOriginatingBeanDefinition, getParentName, getPropertyValues, getResourceDescription, getRole, getScope, hasConstructorArgumentValues, hasPropertyValues, isAbstract, isAutowireCandidate, isLazyInit, isPrimary, isPrototype, isSingleton, setAutowireCandidate, setBeanClassName, setDependsOn, setFactoryBeanName, setFactoryMethodName, setLazyInit, setParentName, setPrimary, setScope`

    - ### 从接口继承的方法 org.springframework.core.AttributeAccessor

      `attributeNames, getAttribute, hasAttribute, removeAttribute, setAttribute`

    - ### 从接口继承的方法 org.springframework.beans.BeanMetadataElement

      `getSource`

- - ### 方法详细资料

    - #### getMetadata

          org.springframework.core.type.AnnotationMetadata getMetadata()

      Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.
      返回:
        the annotation metadata object (never `null`)

    - #### getFactoryMethodMetadata

          @Nullable
          org.springframework.core.type.MethodMetadata getFactoryMethodMetadata()

      Obtain metadata for this bean definition's factory method, if any.
      返回:
        the factory method metadata, or `null` if none
      从以下版本开始:
        4.1.1