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 Summary
Modifier and TypeFieldDescriptionstatic final String
The recommended variable name to used referring to the bean factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInitializer
(MethodReference methodReference) Add an initializer method call.Return aMethodGenerator
that can be used to add more methods to the Initializing code.
-
Field Details
-
BEAN_FACTORY_VARIABLE
The recommended variable name to used referring to the bean factory.- See Also:
-
-
Method Details
-
getMethodGenerator
MethodGenerator getMethodGenerator()Return aMethodGenerator
that can be used to add more methods to the Initializing code.- Returns:
- the method generator
-
addInitializer
Add an initializer method call.- Parameters:
methodReference
- a reference to the initialize method to call. The referenced method must have the same functional signature asConsumer<DefaultListableBeanFactory>
.
-