Class BeanDefinitionsContribution
java.lang.Object
org.springframework.beans.factory.generator.BeanDefinitionsContribution
- All Implemented Interfaces:
BeanFactoryContribution
A
BeanFactoryContribution
that generates the bean definitions of a
bean factory, using BeanRegistrationContributionProvider
to use
appropriate customizations if necessary.
BeanRegistrationContributionProvider
can be ordered, with the default
implementation always coming last.
- Since:
- 6.0
- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(BeanFactoryInitialization initialization) Contribute ahead of time optimizations to the specificBeanFactoryInitialization
.Return a predicate that determines if a particular bean definition should be excluded from processing.
-
Constructor Details
-
BeanDefinitionsContribution
-
-
Method Details
-
applyTo
Description copied from interface:BeanFactoryContribution
Contribute ahead of time optimizations to the specificBeanFactoryInitialization
.- Specified by:
applyTo
in interfaceBeanFactoryContribution
- Parameters:
initialization
-BeanFactoryInitialization
to contribute to
-
getBeanDefinitionExcludeFilter
Description copied from interface:BeanFactoryContribution
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.- Specified by:
getBeanDefinitionExcludeFilter
in interfaceBeanFactoryContribution
- Returns:
- the predicate to use
-