Interface BeanFactoryInitializationAotProcessor
- 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.
AOT processor that makes bean factory initialization contributions by
processing
ConfigurableListableBeanFactory
instances.
Note: Beans implementing interface will not have registration methods
generated during AOT processing unless they also implement
BeanRegistrationExcludeFilter
.
- Since:
- 6.0
- Author:
- Phillip Webb, Stephane Nicoll
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprocessAheadOfTime
(ConfigurableListableBeanFactory beanFactory) Process the givenConfigurableListableBeanFactory
instance ahead-of-time and return a contribution ornull
.
-
Method Details
-
processAheadOfTime
@Nullable BeanFactoryInitializationAotContribution processAheadOfTime(ConfigurableListableBeanFactory beanFactory) Process the givenConfigurableListableBeanFactory
instance ahead-of-time and return a contribution ornull
.Processors are free to use any techniques they like to analyze the given bean factory. Most typically use reflection to find fields or methods to use in the contribution. Contributions typically generate source code or resource files that can be used when the AOT optimized application runs.
If the given bean factory does not contain anything that is relevant to the processor, it should return a
null
contribution.- Parameters:
beanFactory
- the bean factory to process- Returns:
- a
BeanFactoryInitializationAotContribution
ornull
-