Interface BeanRegistrationCodeFragmentsCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy factory interface that can be used to customize the
BeanRegistrationCodeFragments that us used for a given
RegisteredBean. This interface can be used if default code generation
isn't suitable for specific types of RegisteredBean.- Since:
- 6.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptioncustomizeBeanRegistrationCodeFragments(RegisteredBean registeredBean, BeanRegistrationCodeFragments codeFragments) Apply thisBeanRegistrationCodeFragmentsCustomizerto the givencode fragments generator.
-
Method Details
-
customizeBeanRegistrationCodeFragments
BeanRegistrationCodeFragments customizeBeanRegistrationCodeFragments(RegisteredBean registeredBean, BeanRegistrationCodeFragments codeFragments) Apply thisBeanRegistrationCodeFragmentsCustomizerto the givencode fragments generator. The returned code generator my be awrapperaround the original.- Parameters:
registeredBean- the registered beancodeFragments- the existing code fragments- Returns:
- the code generator to use, either the original or a wrapped one;
-