Package org.springframework.beans.factory.generator
@NonNullApi
@NonNullFields
package org.springframework.beans.factory.generator
Support for generating code that represents the state of a bean factory.
-
ClassDescriptionSpecialization of
BeanFactoryPostProcessor
that contributes bean factory optimizations ahead of time, using generated code that replaces runtime behavior.Specialization of a priority orderedBeanPostProcessor
that contributes to bean instantiation ahead of time, providing generated code that is equivalent to its runtime behavior.Thrown when a bean definition could not be generated.ABeanFactoryContribution
that generates the bean definitions of a bean factory, usingBeanRegistrationContributionProvider
to use appropriate customizations if necessary.Contribute optimizations ahead of time to initialize a bean factory.The initialization of aBeanFactory
.A contribution to the instantiation of a bean following ahead of time processing.Generate code that instantiate a particular bean.Support for generating parameters.ABeanFactoryContribution
that registers a bean with the bean factory.Thrown when no suitableBeanFactoryContribution
can be provided for the registration of a given bean definition.Strategy interface to be implemented by components that require custom contribution for a bean definition.DefaultBeanRegistrationContributionProvider
implementation.Generate the necessary code tocreate a bean instance
orinject dependencies
.