Interface BeanFactoryContribution
- All Known Implementing Classes:
BeanDefinitionsContribution,BeanRegistrationBeanFactoryContribution
public interface BeanFactoryContribution
Contribute optimizations ahead of time to initialize a bean factory.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(BeanFactoryInitialization initialization) Contribute ahead of time optimizations to the specificBeanFactoryInitialization.default BiPredicate<String,BeanDefinition> Return a predicate that determines if a particular bean definition should be excluded from processing.
-
Method Details
-
applyTo
Contribute ahead of time optimizations to the specificBeanFactoryInitialization.- Parameters:
initialization-BeanFactoryInitializationto contribute to
-
getBeanDefinitionExcludeFilter
Return a predicate that determines if a particular bean definition should be excluded from processing. Can be used to exclude infrastructure that has been optimized using generated code.- Returns:
- the predicate to use
-