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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe recommended variable name to use to refer to the bean factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInitializer(MethodReference methodReference) Add an initializer method call.Get theGeneratedMethodsused by the initializing code.
-
Field Details
-
BEAN_FACTORY_VARIABLE
The recommended variable name to use to refer to the bean factory.- See Also:
-
-
Method Details
-
getMethods
GeneratedMethods getMethods()Get theGeneratedMethodsused by the initializing code.- Returns:
- the generated methods
-
addInitializer
Add an initializer method call. An initializer can use a flexible signature, using any of the following:DefaultListableBeanFactory, orConfigurableListableBeanFactoryto use the bean factory.ConfigurableEnvironmentorEnvironmentto access the environment.ResourceLoaderto load resources.
- Parameters:
methodReference- a reference to the initialize method to call.
-