|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.annotation.AnnotationConfigUtils
public class AnnotationConfigUtils
Utility class that allows for convenient registration of common
BeanPostProcessor
and
BeanFactoryPostProcessor
definitions for annotation-based configuration.
CommonAnnotationBeanPostProcessor
,
ConfigurationClassPostProcessor
,
AutowiredAnnotationBeanPostProcessor
,
RequiredAnnotationBeanPostProcessor
,
PersistenceAnnotationBeanPostProcessor
Field Summary | |
---|---|
static java.lang.String |
ASYNC_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Async annotation processor. |
static java.lang.String |
ASYNC_EXECUTION_ASPECT_BEAN_NAME
The bean name of the internally managed AspectJ async execution aspect. |
static java.lang.String |
ASYNC_EXECUTION_ASPECT_CLASS_NAME
The class name of the AspectJ async execution aspect. |
static java.lang.String |
ASYNC_EXECUTION_ASPECT_CONFIGURATION_CLASS_NAME
The name of the AspectJ async execution aspect @ Configuration class. |
static java.lang.String |
AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Autowired annotation processor. |
static java.lang.String |
CACHE_ADVISOR_BEAN_NAME
The bean name of the internally managed cache advisor. |
static java.lang.String |
CACHE_ASPECT_BEAN_NAME
The bean name of the internally managed cache aspect. |
static java.lang.String |
CACHE_ASPECT_CLASS_NAME
The class name of the AspectJ caching aspect. |
static java.lang.String |
CACHE_ASPECT_CONFIGURATION_CLASS_NAME
The name of the AspectJ caching aspect @ Configuration class. |
static java.lang.String |
COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed JSR-250 annotation processor. |
static java.lang.String |
CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Configuration annotation processor. |
private static boolean |
jpaPresent
|
private static boolean |
jsr250Present
|
static java.lang.String |
PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed JPA annotation processor. |
private static java.lang.String |
PERSISTENCE_ANNOTATION_PROCESSOR_CLASS_NAME
|
static java.lang.String |
REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Required annotation processor. |
static java.lang.String |
SCHEDULED_ANNOTATION_PROCESSOR_BEAN_NAME
The bean name of the internally managed Scheduled annotation processor. |
Constructor Summary | |
---|---|
AnnotationConfigUtils()
|
Method Summary | |
---|---|
(package private) static BeanDefinitionHolder |
applyScopedProxyMode(ScopeMetadata metadata,
BeanDefinitionHolder definition,
BeanDefinitionRegistry registry)
|
(package private) static void |
processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd)
|
static void |
registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
Register all relevant annotation post processors in the given registry. |
static java.util.Set<BeanDefinitionHolder> |
registerAnnotationConfigProcessors(BeanDefinitionRegistry registry,
java.lang.Object source)
Register all relevant annotation post processors in the given registry. |
private static BeanDefinitionHolder |
registerPostProcessor(BeanDefinitionRegistry registry,
RootBeanDefinition definition,
java.lang.String beanName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME
public static final java.lang.String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME
public static final java.lang.String REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME
public static final java.lang.String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME
public static final java.lang.String SCHEDULED_ANNOTATION_PROCESSOR_BEAN_NAME
public static final java.lang.String ASYNC_ANNOTATION_PROCESSOR_BEAN_NAME
public static final java.lang.String ASYNC_EXECUTION_ASPECT_BEAN_NAME
public static final java.lang.String ASYNC_EXECUTION_ASPECT_CLASS_NAME
public static final java.lang.String ASYNC_EXECUTION_ASPECT_CONFIGURATION_CLASS_NAME
Configuration
class.
public static final java.lang.String CACHE_ADVISOR_BEAN_NAME
public static final java.lang.String CACHE_ASPECT_BEAN_NAME
public static final java.lang.String CACHE_ASPECT_CLASS_NAME
public static final java.lang.String CACHE_ASPECT_CONFIGURATION_CLASS_NAME
Configuration
class.
public static final java.lang.String PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME
private static final java.lang.String PERSISTENCE_ANNOTATION_PROCESSOR_CLASS_NAME
private static final boolean jsr250Present
private static final boolean jpaPresent
Constructor Detail |
---|
public AnnotationConfigUtils()
Method Detail |
---|
public static void registerAnnotationConfigProcessors(BeanDefinitionRegistry registry)
registry
- the registry to operate onpublic static java.util.Set<BeanDefinitionHolder> registerAnnotationConfigProcessors(BeanDefinitionRegistry registry, java.lang.Object source)
registry
- the registry to operate onsource
- the configuration source element (already extracted)
that this registration was triggered from. May be null
.
private static BeanDefinitionHolder registerPostProcessor(BeanDefinitionRegistry registry, RootBeanDefinition definition, java.lang.String beanName)
static void processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd)
static BeanDefinitionHolder applyScopedProxyMode(ScopeMetadata metadata, BeanDefinitionHolder definition, BeanDefinitionRegistry registry)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |