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
Modifier and TypeFieldDescriptionstatic final String
The recommended variable name to use to refer to the bean factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInitializer
(MethodReference methodReference) Add an initializer method call.Get theGeneratedMethods
used 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 theGeneratedMethods
used 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
, orConfigurableListableBeanFactory
to use the bean factory.ConfigurableEnvironment
orEnvironment
to access the environment.ResourceLoader
to load resources.
- Parameters:
methodReference
- a reference to the initialize method to call.
-