Interface BeanInstantiationContributor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contributor to the code that instantiates a bean following ahead of time
processing.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BeanInstantiationContributorABeanInstantiationContributorthat does not contribute anything to theCodeContribution. -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(CodeContribution contribution) Contribute to the specifiedCodeContribution.
-
Field Details
-
NO_OP
ABeanInstantiationContributorthat does not contribute anything to theCodeContribution.
-
-
Method Details
-
contribute
Contribute to the specifiedCodeContribution.Implementation of this interface can assume the following variables to be accessible:
beanFactory: the generalDefaultListableBeanFactoryinstanceContext: theBeanInstanceContextcallbackbean: the variable that refers to the bean instance
- Parameters:
contribution- theCodeContributionto use
-