Interface AotContributingBeanFactoryPostProcessor
- All Superinterfaces:
BeanFactoryPostProcessor
- All Known Implementing Classes:
ConfigurationClassPostProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AotContributingBeanFactoryPostProcessor
extends BeanFactoryPostProcessor
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 aBeanFactoryContribution
for the given bean factory, if applicable.default void
postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) Modify the application context's internal bean factory after its standard initialization.
-
Method Details
-
contribute
Contribute aBeanFactoryContribution
for 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:BeanFactoryPostProcessor
Modify 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:
postProcessBeanFactory
in interfaceBeanFactoryPostProcessor
- Parameters:
beanFactory
- the bean factory used by the application context- Throws:
BeansException
- in case of errors
-