Interface BeanInstantiationContribution

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BeanInstantiationContribution
A contribution to the instantiation of a bean following ahead of time processing.
Since:
6.0
Author:
Stephane Nicoll
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyTo(CodeContribution contribution)
    Contribute bean instantiation to the specified CodeContribution.
  • Method Details

    • applyTo

      void applyTo(CodeContribution contribution)
      Contribute bean instantiation to the specified CodeContribution.

      Implementations of this interface can assume the following variables to be accessible:

      • beanFactory: the general DefaultListableBeanFactory
      • instanceContext: the BeanInstanceContext callback
      • bean: the variable that refers to the bean instance
      Parameters:
      contribution - the CodeContribution to use