public class AnnotationConfigUtils extends Object
BeanPostProcessor and
BeanFactoryPostProcessor
definitions for annotation-based configuration.CommonAnnotationBeanPostProcessor,
ConfigurationClassPostProcessor,
AutowiredAnnotationBeanPostProcessor,
RequiredAnnotationBeanPostProcessor,
PersistenceAnnotationBeanPostProcessor| Modifier and Type | Field and Description |
|---|---|
static String |
ASYNC_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Async annotation processor.
|
static String |
ASYNC_EXECUTION_ASPECT_BEAN_NAME
The bean name of the internally managed AspectJ async execution aspect.
|
static String |
ASYNC_EXECUTION_ASPECT_CLASS_NAME
The class name of the AspectJ async execution aspect.
|
static String |
ASYNC_EXECUTION_ASPECT_CONFIGURATION_CLASS_NAME
The name of the AspectJ async execution aspect @
Configuration class. |
static String |
AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Autowired annotation processor.
|
static String |
CACHE_ADVISOR_BEAN_NAME
The bean name of the internally managed cache advisor.
|
static String |
CACHE_ASPECT_BEAN_NAME
The bean name of the internally managed cache aspect.
|
static String |
CACHE_ASPECT_CLASS_NAME
The class name of the AspectJ caching aspect.
|
static String |
CACHE_ASPECT_CONFIGURATION_CLASS_NAME
The name of the AspectJ caching aspect @
Configuration class. |
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 |
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.
|
static String |
SCHEDULED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Scheduled annotation processor.
|
| Constructor and Description |
|---|
AnnotationConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd) |
static void |
registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
Register all relevant annotation post processors in the given registry.
|
static Set<BeanDefinitionHolder> |
registerAnnotationConfigProcessors(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 SCHEDULED_ANNOTATION_PROCESSOR_BEAN_NAME
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String ASYNC_ANNOTATION_PROCESSOR_BEAN_NAME
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String ASYNC_EXECUTION_ASPECT_BEAN_NAME
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String ASYNC_EXECUTION_ASPECT_CLASS_NAME
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String ASYNC_EXECUTION_ASPECT_CONFIGURATION_CLASS_NAME
Configuration class.
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String CACHE_ADVISOR_BEAN_NAME
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String CACHE_ASPECT_BEAN_NAME
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String CACHE_ASPECT_CLASS_NAME
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static final String CACHE_ASPECT_CONFIGURATION_CLASS_NAME
Configuration class.
ATTENTION:
This constant is meant for internal use only. The value is stable but don't rely on the presence of this constant declaration; rather copy the value.public static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
registry - the registry to operate onpublic static Set<BeanDefinitionHolder> registerAnnotationConfigProcessors(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(AnnotatedBeanDefinition abd)