public class AnnotationConfigUtils extends Object
BeanPostProcessor and
BeanFactoryPostProcessor
definitions for annotation-based configuration. Also registers a common
AutowireCandidateResolver.ContextAnnotationAutowireCandidateResolver,
CommonAnnotationBeanPostProcessor,
ConfigurationClassPostProcessor,
AutowiredAnnotationBeanPostProcessor,
RequiredAnnotationBeanPostProcessor,
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
AnnotationConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME
public static final String CONFIGURATION_BEAN_NAME_GENERATOR
Configuration classes. Set by AnnotationConfigApplicationContext
and AnnotationConfigWebApplicationContext during bootstrap in order to make
any custom name generation strategy available to the underlying
ConfigurationClassPostProcessor.public static final String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
public static final String REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME
public static final String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
public static final String PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME
public static final String EVENT_LISTENER_PROCESSOR_BEAN_NAME
public static final String EVENT_LISTENER_FACTORY_BEAN_NAME
public static void registerAnnotationConfigProcessors(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
registry - the registry to operate onpublic static Set<org.springframework.beans.factory.config.BeanDefinitionHolder> registerAnnotationConfigProcessors(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Object source)
registry - the registry to operate onsource - the configuration source element (already extracted)
that this registration was triggered from. May be null.public static void processCommonDefinitionAnnotations(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition abd)