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 Summary
Modifier 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
- 
getClassName
org.springframework.javapoet.ClassName getClassName()Return the name of the class being used for registrations.- Returns:
 - the name of the class
 
 - 
getMethods
GeneratedMethods getMethods()Return aGeneratedMethodsbeing used by the registrations code.- Returns:
 - the generated methods
 
 - 
addInstancePostProcessor
Add 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 withInstanceSupplier.andThen(org.springframework.util.function.ThrowingBiFunction<org.springframework.beans.factory.support.RegisteredBean, ? super T, ? extends V>).- See Also:
 
 
 -