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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(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:BeanFactoryContributionContribute ahead of time optimizations to the specificBeanFactoryInitialization.- Specified by:
applyToin interfaceBeanFactoryContribution- Parameters:
initialization-BeanFactoryInitializationto contribute to
-
getBeanDefinitionExcludeFilter
Description copied from interface:BeanFactoryContributionReturn 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:
getBeanDefinitionExcludeFilterin interfaceBeanFactoryContribution- Returns:
- the predicate to use
-