| java.lang.Object | |
| ↳ | org.springframework.context.annotation.ConfigurationClassPostProcessor |
BeanFactoryPostProcessor used for bootstrapping processing of
@Configuration classes.
Registered by default when using <context:annotation-config/> or
<context:component-scan/>. Otherwise, may be declared manually as
with any other BeanFactoryPostProcessor.
This post processor is HIGHEST_PRECEDENCE as it is important
that any Bean methods declared in Configuration classes have their
respective bean definitions registered before any other BeanFactoryPostProcessor
executes.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Post-processes a BeanFactory in search of Configuration class BeanDefinitions;
any candidates are then enhanced by a ConfigurationClassEnhancer.
| |||||||||||
Derive further bean definitions from the configuration classes in the registry.
| |||||||||||
Prepare the Configuration classes for servicing bean requests at runtime
by replacing them with CGLIB-enhanced subclasses.
| |||||||||||
Build and validate a configuration model based on the registry of
Configuration classes. | |||||||||||
Callback that supplies the bean
class loader to
a bean instance. | |||||||||||
Set the
Environment that this object runs in. | |||||||||||
Set the
MetadataReaderFactory to use. | |||||||||||
Set the
ProblemReporter to use. | |||||||||||
Set the ResourceLoader that this object runs in.
| |||||||||||
Set the
SourceExtractor to use for generated bean definitions
that correspond to Bean factory methods. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanClassLoaderAware
| |||||||||||
From interface
org.springframework.beans.factory.config.BeanFactoryPostProcessor
| |||||||||||
From interface
org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
| |||||||||||
From interface
org.springframework.context.EnvironmentAware
| |||||||||||
From interface
org.springframework.context.ResourceLoaderAware
| |||||||||||
Post-processes a BeanFactory in search of Configuration class BeanDefinitions; any candidates are then enhanced by a ConfigurationClassEnhancer. Candidate status is determined by BeanDefinition attribute metadata.
Derive further bean definitions from the configuration classes in the registry.
| registry | the bean definition registry used by the application context |
|---|
Prepare the Configuration classes for servicing bean requests at runtime by replacing them with CGLIB-enhanced subclasses.
| beanFactory | the bean factory used by the application context |
|---|
Build and validate a configuration model based on the registry of
Configuration classes.
Callback that supplies the bean class loader to
a bean instance.
Invoked after the population of normal bean properties but
before an initialization callback such as
InitializingBean's
afterPropertiesSet()
method or a custom init-method.
| beanClassLoader | the owning class loader; may be null in
which case a default ClassLoader must be used, for example
the ClassLoader obtained via
getDefaultClassLoader()
|
|---|
Set the MetadataReaderFactory to use.
Default is a CachingMetadataReaderFactory for the specified
bean class loader.
Set the ProblemReporter to use.
Used to register any problems detected with Configuration or Bean
declarations. For instance, an @Bean method marked as final is illegal
and would be reported as a problem. Defaults to FailFastProblemReporter.
Set the ResourceLoader that this object runs in.
This might be a ResourcePatternResolver, which can be checked
through instanceof ResourcePatternResolver. See also the
ResourcePatternUtils.getResourcePatternResolver method.
Invoked after population of normal bean properties but before an init callback
like InitializingBean's afterPropertiesSet or a custom init-method.
Invoked before ApplicationContextAware's setApplicationContext.
| resourceLoader | ResourceLoader object to be used by this object |
|---|
Set the SourceExtractor to use for generated bean definitions
that correspond to Bean factory methods.