Top Description Fields Methods
org.springframework.beans.factory.aot

public Interface BeanFactoryInitializationCode

Imports
org.springframework.aot.generate.GeneratedMethods, .MethodReference

Interface that can be used to configure the code that will be generated to perform bean factory initialization.
Authors
Phillip Webb, Stephane Nicoll
Since
6.0
See Also
BeanFactoryInitializationAotContribution

Field Summary

Modifier and TypeField and Description
public static final String
BEAN_FACTORY_VARIABLE

The recommended variable name to use to refer to the bean factory.

Method Summary

Modifier and TypeMethod and Description
public void
addInitializer(MethodReference
a reference to the initialize method to call.
methodReference
)

Add an initializer method call.

public GeneratedMethods

Returns:

the generated methods
getMethods
()

Get the GeneratedMethods used by the initializing code.

Field Detail

BEAN_FACTORY_VARIABLEback to summary
public static final String BEAN_FACTORY_VARIABLE

The recommended variable name to use to refer to the bean factory.

Method Detail

addInitializerback to summary
public void addInitializer(MethodReference methodReference)

Add an initializer method call. An initializer can use a flexible signature, using any of the following:

  • DefaultListableBeanFactory, or ConfigurableListableBeanFactory to use the bean factory.
  • ConfigurableEnvironment or Environment to access the environment.
  • ResourceLoader to load resources.
Parameters
methodReference:MethodReference

a reference to the initialize method to call.

getMethodsback to summary
public GeneratedMethods getMethods()

Get the GeneratedMethods used by the initializing code.

Returns:GeneratedMethods

the generated methods