Interface BeanRegistrationCode
public interface BeanRegistrationCode
Interface that can be used to configure the code that will be generated to
 perform registration of a single bean.
- Since:
- 6.0
- Author:
- Phillip Webb
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddInstancePostProcessor(MethodReference methodReference) Add an instance post processor method call to the registration code.org.springframework.javapoet.ClassNameReturn the name of the class being used for registrations.Return aGeneratedMethodsbeing used by the registrations code.
- 
Method Details- 
getClassNameorg.springframework.javapoet.ClassName getClassName()Return the name of the class being used for registrations.- Returns:
- the name of the class
 
- 
getMethodsGeneratedMethods getMethods()Return aGeneratedMethodsbeing used by the registrations code.- Returns:
- the generated methods
 
- 
addInstancePostProcessorAdd an instance post processor method call to the registration code.- Parameters:
- methodReference- a reference to the post-process method to call. The referenced method must have a functional signature compatible with- InstanceSupplier.andThen(org.springframework.util.function.ThrowingBiFunction<org.springframework.beans.factory.support.RegisteredBean, ? super T, ? extends V>).
- See Also:
 
 
-