Interface BeanRegistrationContributionProvider
- All Known Implementing Classes:
DefaultBeanRegistrationContributionProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface to be implemented by components that require custom
contribution for a bean definition.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptiongetContributionFor
(String beanName, RootBeanDefinition beanDefinition) Return theBeanFactoryContribution
that is capable of contributing the registration of a bean for the givenRootBeanDefinition
ornull
if the specified bean definition is not supported.
-
Method Details
-
getContributionFor
@Nullable BeanFactoryContribution getContributionFor(String beanName, RootBeanDefinition beanDefinition) Return theBeanFactoryContribution
that is capable of contributing the registration of a bean for the givenRootBeanDefinition
ornull
if the specified bean definition is not supported.- Parameters:
beanName
- the bean name to handlebeanDefinition
- the merged bean definition- Returns:
- a contribution for the specified bean definition or
null
-