org.springframework.context.annotation

## 类 AnnotationConfigUtils

- java.lang.Object
- - org.springframework.context.annotation.AnnotationConfigUtils

-     public class AnnotationConfigUtils
      extends Object

  Utility class that allows for convenient registration of common `BeanPostProcessor` and `BeanFactoryPostProcessor` definitions for annotation-based configuration. Also registers a common `AutowireCandidateResolver`.
  从以下版本开始:
    2.5
  作者:
    Mark Fisher, Juergen Hoeller, Chris Beams, Phillip Webb, Stephane Nicoll
  另请参阅:
    `ContextAnnotationAutowireCandidateResolver`, `ConfigurationClassPostProcessor`, `CommonAnnotationBeanPostProcessor`, `AutowiredAnnotationBeanPostProcessor`, `RequiredAnnotationBeanPostProcessor`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME` The bean name of the internally managed Autowired annotation processor.
    `static String` | `COMMON_ANNOTATION_PROCESSOR_BEAN_NAME` The bean name of the internally managed JSR-250 annotation processor.
    `static String` | `CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME` The bean name of the internally managed Configuration annotation processor.
    `static String` | `CONFIGURATION_BEAN_NAME_GENERATOR` The bean name of the internally managed BeanNameGenerator for use when processing `Configuration` classes.
    `static String` | `EVENT_LISTENER_FACTORY_BEAN_NAME` The bean name of the internally managed EventListenerFactory.
    `static String` | `EVENT_LISTENER_PROCESSOR_BEAN_NAME` The bean name of the internally managed @EventListener annotation processor.
    `static String` | `PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME` The bean name of the internally managed JPA annotation processor.
    `static String` | `REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME` The bean name of the internally managed Required annotation processor.

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `processCommonDefinitionAnnotations(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition abd)`
    `static void` | `registerAnnotationConfigProcessors(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)` Register all relevant annotation post processors in the given registry.
    `static Set<org.springframework.beans.factory.config.BeanDefinitionHolder>` | `registerAnnotationConfigProcessors(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Object source)` Register all relevant annotation post processors in the given registry.

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

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

- - ### 字段详细资料

    - #### CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME

          public static final String CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME

      The bean name of the internally managed Configuration annotation processor.
      另请参阅:
        常量字段值

    - #### CONFIGURATION_BEAN_NAME_GENERATOR

          public static final String CONFIGURATION_BEAN_NAME_GENERATOR

      The bean name of the internally managed BeanNameGenerator for use when processing `Configuration` classes. Set by `AnnotationConfigApplicationContext` and `AnnotationConfigWebApplicationContext` during bootstrap in order to make any custom name generation strategy available to the underlying `ConfigurationClassPostProcessor`.
      从以下版本开始:
        3.1.1
      另请参阅:
        常量字段值

    - #### AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME

          public static final String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME

      The bean name of the internally managed Autowired annotation processor.
      另请参阅:
        常量字段值

    - #### REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME

          public static final String REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME

      The bean name of the internally managed Required annotation processor.
      另请参阅:
        常量字段值

    - #### COMMON_ANNOTATION_PROCESSOR_BEAN_NAME

          public static final String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME

      The bean name of the internally managed JSR-250 annotation processor.
      另请参阅:
        常量字段值

    - #### PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME

          public static final String PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME

      The bean name of the internally managed JPA annotation processor.
      另请参阅:
        常量字段值

    - #### EVENT_LISTENER_PROCESSOR_BEAN_NAME

          public static final String EVENT_LISTENER_PROCESSOR_BEAN_NAME

      The bean name of the internally managed @EventListener annotation processor.
      另请参阅:
        常量字段值

    - #### EVENT_LISTENER_FACTORY_BEAN_NAME

          public static final String EVENT_LISTENER_FACTORY_BEAN_NAME

      The bean name of the internally managed EventListenerFactory.
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### AnnotationConfigUtils

          public AnnotationConfigUtils()

  - ### 方法详细资料

    - #### registerAnnotationConfigProcessors

          public static void registerAnnotationConfigProcessors(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)

      Register all relevant annotation post processors in the given registry.
      参数:
        `registry` - the registry to operate on

    - #### registerAnnotationConfigProcessors

          public static Set<org.springframework.beans.factory.config.BeanDefinitionHolder> registerAnnotationConfigProcessors(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
                                                                                                                              @Nullable
                                                                                                                              Object source)

      Register all relevant annotation post processors in the given registry.
      参数:
        `registry` - the registry to operate on
        `source` - the configuration source element (already extracted) that this registration was triggered from. May be `null`.
      返回:
        a Set of BeanDefinitionHolders, containing all bean definitions that have actually been registered by this call

    - #### processCommonDefinitionAnnotations

          public static void processCommonDefinitionAnnotations(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition abd)