Interface BeanFactoryInitializationCode


public interface BeanFactoryInitializationCode
Interface that can be used to configure the code that will be generated to perform bean factory initialization.
Since:
6.0
Author:
Phillip Webb
See Also:
  • Field Details

    • BEAN_FACTORY_VARIABLE

      static final String BEAN_FACTORY_VARIABLE
      The recommended variable name to used referring to the bean factory.
      See Also:
  • Method Details

    • getMethodGenerator

      MethodGenerator getMethodGenerator()
      Return a MethodGenerator that can be used to add more methods to the Initializing code.
      Returns:
      the method generator
    • addInitializer

      void addInitializer(MethodReference methodReference)
      Add an initializer method call.
      Parameters:
      methodReference - a reference to the initialize method to call. The referenced method must have the same functional signature as Consumer<DefaultListableBeanFactory>.