Interface AotContributingBeanFactoryPostProcessor
- All Superinterfaces:
BeanFactoryPostProcessor
- All Known Implementing Classes:
ConfigurationClassPostProcessor
Specialization of
BeanFactoryPostProcessor that contributes bean
factory optimizations ahead of time, using generated code that replaces
runtime behavior.- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptioncontribute(ConfigurableListableBeanFactory beanFactory) Contribute aBeanFactoryContributionfor the given bean factory, if applicable.default voidpostProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) Modify the application context's internal bean factory after its standard initialization.
-
Method Details
-
contribute
Contribute aBeanFactoryContributionfor the given bean factory, if applicable.- Parameters:
beanFactory- the bean factory to optimize- Returns:
- the contribution to use or
null
-
postProcessBeanFactory
default void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException Description copied from interface:BeanFactoryPostProcessorModify the application context's internal bean factory after its standard initialization. All bean definitions will have been loaded, but no beans will have been instantiated yet. This allows for overriding or adding properties even to eager-initializing beans.- Specified by:
postProcessBeanFactoryin interfaceBeanFactoryPostProcessor- Parameters:
beanFactory- the bean factory used by the application context- Throws:
BeansException- in case of errors
-