类 AnnotationConfigUtils
java.lang.Object
cn.taketoday.context.annotation.AnnotationConfigUtils
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
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final StringThe bean name of the internally managed Autowired annotation processor.static final StringThe bean name of the internally managed common annotation processor.static final StringThe bean name of the internally managed Configuration annotation processor.static final StringThe bean name of the internally managed BeanNameGenerator for use when processingConfigurationclasses.static final StringThe bean name of the internally managed EventListenerFactory.static final StringThe bean name of the internally managed @EventListener annotation processor.static final StringThe bean name of the internally managed JPA annotation processor. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidapplyAnnotationMetadata(AnnotatedBeanDefinition definition) static voidapplyAnnotationMetadata(cn.taketoday.core.annotation.MergedAnnotations annotations, BeanDefinition definition) static voidstatic voidstatic voidregisterAnnotationConfigProcessors(BeanDefinitionRegistry registry, Consumer<BeanDefinitionHolder> consumer) Register all relevant annotation post processors in the given registry.
-
字段详细资料
-
CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Configuration annotation processor.- 另请参阅:
-
CONFIGURATION_BEAN_NAME_GENERATOR
The bean name of the internally managed BeanNameGenerator for use when processingConfigurationclasses. Set byStandardApplicationContextandAnnotationConfigWebApplicationContextduring bootstrap in order to make any custom name generation strategy available to the underlyingConfigurationClassPostProcessor.- 另请参阅:
-
AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Autowired annotation processor.- 另请参阅:
-
PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed JPA annotation processor.- 另请参阅:
-
EVENT_LISTENER_PROCESSOR_BEAN_NAME
The bean name of the internally managed @EventListener annotation processor.- 另请参阅:
-
EVENT_LISTENER_FACTORY_BEAN_NAME
The bean name of the internally managed EventListenerFactory.- 另请参阅:
-
COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed common annotation processor.- 另请参阅:
-
-
构造器详细资料
-
AnnotationConfigUtils
public AnnotationConfigUtils()
-
-
方法详细资料
-
registerAnnotationConfigProcessors
-
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
-
applyAnnotationMetadata
-
applyAnnotationMetadata
public static void applyAnnotationMetadata(cn.taketoday.core.annotation.MergedAnnotations annotations, BeanDefinition definition)
-