类 AnnotationConfigUtils

java.lang.Object
cn.taketoday.context.annotation.AnnotationConfigUtils

public abstract class AnnotationConfigUtils extends Object
Utility class that allows for convenient registration of common BeanPostProcessor and BeanFactoryPostProcessor definitions for annotation-based configuration.
从以下版本开始:
4.0
作者:
Mark Fisher, Juergen Hoeller, Chris Beams, Phillip Webb, Stephane Nicoll
另请参阅:
  • 字段详细资料

    • 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 StandardApplicationContext and AnnotationConfigWebApplicationContext during bootstrap in order to make any custom name generation strategy available to the underlying ConfigurationClassPostProcessor.
      另请参阅:
    • AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME

      public static final String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
      The bean name of the internally managed Autowired 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.
      另请参阅:
    • COMMON_ANNOTATION_PROCESSOR_BEAN_NAME

      public static final String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
      The bean name of the internally managed common annotation processor.
      另请参阅:
  • 构造器详细资料

    • AnnotationConfigUtils

      public AnnotationConfigUtils()
  • 方法详细资料

    • registerAnnotationConfigProcessors

      public static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
    • registerAnnotationConfigProcessors

      public static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry, @Nullable Consumer<BeanDefinitionHolder> consumer)
      Register all relevant annotation post processors in the given registry.
      参数:
      registry - the registry to operate on
    • processCommonDefinitionAnnotations

      public static void processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd)
    • applyAnnotationMetadata

      public static void applyAnnotationMetadata(AnnotatedBeanDefinition definition)
    • applyAnnotationMetadata

      public static void applyAnnotationMetadata(cn.taketoday.core.annotation.MergedAnnotations annotations, BeanDefinition definition)