类 ConfigurationClassPostProcessor
- 所有已实现的接口:
Aware,BeanClassLoaderAware,BeanFactoryPostProcessor,BeanDefinitionRegistryPostProcessor,BootstrapContextAware,cn.taketoday.core.Ordered,cn.taketoday.core.PriorityOrdered
BeanFactoryPostProcessor used for bootstrapping processing of
@Configuration classes.
This post processor is priority-ordered as it is important that any
@Component methods declared in @Configuration classes have
their corresponding bean definitions registered before any other
BeanFactoryPostProcessor executes.
- 从以下版本开始:
- 4.0 2021/12/7 21:36
- 作者:
- Chris Beams, Juergen Hoeller, Phillip Webb, Sam Brannen, Harry Yang
-
字段概要
字段从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidenhanceConfigurationClasses(ConfigurableBeanFactory beanFactory) Post-processes a BeanFactory in search of Configuration class BeanDefinitions; any candidates are then enhanced by aConfigurationClassEnhancer.intgetOrder()protected final BootstrapContextvoidDerive further bean definitions from the configuration classes in the registry.voidpostProcessBeanFactory(ConfigurableBeanFactory beanFactory) Prepare the Configuration classes for servicing bean requests at runtime by replacing them with CGLIB-enhanced subclasses.voidBuild and validate a configuration model based on the registry ofConfigurationclasses.voidsetBeanClassLoader(ClassLoader beanClassLoader) voidsetBeanNameGenerator(BeanNameGenerator beanNameGenerator) Set theBeanNameGeneratorto be used when triggering component scanning fromConfigurationclasses and when registeringImport'ed configuration classes.voidsetBootstrapContext(BootstrapContext context) voidsetProblemReporter(ProblemReporter problemReporter) Set theProblemReporterto use.
-
字段详细资料
-
IMPORT_BEAN_NAME_GENERATOR
-
-
构造器详细资料
-
ConfigurationClassPostProcessor
public ConfigurationClassPostProcessor() -
ConfigurationClassPostProcessor
-
-
方法详细资料
-
setBootstrapContext
- 指定者:
setBootstrapContext在接口中BootstrapContextAware
-
obtainBootstrapContext
-
getOrder
public int getOrder()- 指定者:
getOrder在接口中cn.taketoday.core.Ordered
-
setProblemReporter
Set theProblemReporterto use.Used to register any problems detected with
ConfigurationorComponentdeclarations. For instance, an @Component method marked asfinalis illegal and would be reported as a problem. Defaults toFailFastProblemReporter. -
setBeanNameGenerator
Set theBeanNameGeneratorto be used when triggering component scanning fromConfigurationclasses and when registeringImport'ed configuration classes. The default is a standardAnnotationBeanNameGeneratorfor scanned components (compatible with the default inClassPathBeanDefinitionScanner) and a variant thereof for imported configuration classes (using unique fully-qualified class names instead of standard component overriding).Note that this strategy does not apply to
Beanmethods.This setter is typically only appropriate when configuring the post-processor as a standalone bean definition in XML, e.g. not using the dedicated
AnnotationConfig*application contexts or the<context:annotation-config>element. Any bean name generator specified against the application context will take precedence over any set here. -
setBeanClassLoader
- 指定者:
setBeanClassLoader在接口中BeanClassLoaderAware
-
postProcessBeanDefinitionRegistry
Derive further bean definitions from the configuration classes in the registry. -
postProcessBeanFactory
Prepare the Configuration classes for servicing bean requests at runtime by replacing them with CGLIB-enhanced subclasses. -
processConfigBeanDefinitions
Build and validate a configuration model based on the registry ofConfigurationclasses. -
enhanceConfigurationClasses
Post-processes a BeanFactory in search of Configuration class BeanDefinitions; any candidates are then enhanced by aConfigurationClassEnhancer. Candidate status is determined by BeanDefinition attribute metadata.- 另请参阅:
-
ConfigurationClassEnhancer
-