public class ConfigurationAnnotationConfigurer extends InstantiationAwareBeanPostProcessorAdapter implements BeanFactoryPostProcessor
BeanPostProcessor implementation that autowires annotated fields annotated with the @Configuration or
@Environment annotations.
Fields are injected right after construction of a bean, before any config methods are invoked. Such a config field
does not have to be public.
If a @Configuration element have the required flag set, and no value could be assosiated with the given key a
BeanInstantiationException is thrown invalidating the entire context.Configuration,
Environment| Constructor and Description |
|---|
ConfigurationAnnotationConfigurer(ConstrettoConfiguration configuration,
AssemblyContextResolver assemblyContextResolver) |
| Modifier and Type | Method and Description |
|---|---|
Constructor<?>[] |
determineCandidateConstructors(Class<?> beanClass,
String beanName) |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
boolean |
postProcessAfterInstantiation(Object bean,
String beanName) |
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
getEarlyBeanReference, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanTypepublic ConfigurationAnnotationConfigurer(ConstrettoConfiguration configuration, AssemblyContextResolver assemblyContextResolver)
public Constructor<?>[] determineCandidateConstructors(Class<?> beanClass, String beanName) throws BeansException
determineCandidateConstructors in interface SmartInstantiationAwareBeanPostProcessordetermineCandidateConstructors in class InstantiationAwareBeanPostProcessorAdapterBeansExceptionpublic boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException
postProcessAfterInstantiation in interface InstantiationAwareBeanPostProcessorpostProcessAfterInstantiation in class InstantiationAwareBeanPostProcessorAdapterBeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
postProcessAfterInitialization in interface BeanPostProcessorpostProcessAfterInitialization in class InstantiationAwareBeanPostProcessorAdapterBeansExceptionpublic void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException
postProcessBeanFactory in interface BeanFactoryPostProcessorBeansExceptionCopyright © 2008-2013. All Rights Reserved.