Top Description Methods
org.springframework.beans.factory.aot

public Interface BeanRegistrationCode

Known Direct Implementers
org.springframework.beans.factory.aot.BeanRegistrationCodeGenerator
Imports
org.springframework.aot.generate.GeneratedMethods, .MethodReference, org.springframework.beans.factory.support.InstanceSupplier, org.springframework.javapoet.ClassName, org.springframework.util.function.ThrowingBiFunction

Interface that can be used to configure the code that will be generated to perform registration of a single bean.
Author
Phillip Webb
Since
6.0
See Also
BeanRegistrationCodeFragments

Method Summary

Modifier and TypeMethod and Description
public void
addInstancePostProcessor(MethodReference
a reference to the post-process method to call. The referenced method must have a functional signature compatible with InstanceSupplier#andThen.
methodReference
)

Add an instance post processor method call to the registration code.

public ClassName

Returns:

the name of the class
getClassName
()

Return the name of the class being used for registrations.

public GeneratedMethods

Returns:

the generated methods
getMethods
()

Return a GeneratedMethods being used by the registrations code.

Method Detail

addInstancePostProcessorback to summary
public void addInstancePostProcessor(MethodReference methodReference)

Add an instance post processor method call to the registration code.

Parameters
methodReference:MethodReference

a reference to the post-process method to call. The referenced method must have a functional signature compatible with InstanceSupplier#andThen.

See Also
InstanceSupplier#andThen(ThrowingBiFunction)
getClassNameback to summary
public ClassName getClassName()

Return the name of the class being used for registrations.

Returns:ClassName

the name of the class

getMethodsback to summary
public GeneratedMethods getMethods()

Return a GeneratedMethods being used by the registrations code.

Returns:GeneratedMethods

the generated methods