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, Stephane Nicoll
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe recommended variable name to use to refer to the bean factory.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddInitializer(MethodReference methodReference) Add an initializer method call.Get theGeneratedMethodsused by the initializing code.
- 
Field Details- 
BEAN_FACTORY_VARIABLEThe recommended variable name to use to refer to the bean factory.- See Also:
 
 
- 
- 
Method Details- 
getMethodsGeneratedMethods getMethods()Get theGeneratedMethodsused by the initializing code.- Returns:
- the generated methods
 
- 
addInitializerAdd an initializer method call. An initializer can use a flexible signature, using any of the following:- DefaultListableBeanFactory, or- ConfigurableListableBeanFactoryto use the bean factory.
- ConfigurableEnvironmentor- Environmentto access the environment.
- ResourceLoaderto load resources.
 - Parameters:
- methodReference- a reference to the initialize method to call.
 
 
-