Interface AotContributingBeanPostProcessor
- All Superinterfaces:
BeanPostProcessor
- All Known Implementing Classes:
AutowiredAnnotationBeanPostProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Specialization of
BeanPostProcessor that contributes to bean
instantiation ahead of time, providing generated code that is equivalent to
its runtime behavior.
Contrary to other bean post processors, implementations of this interface are instantiated at build-time and should not rely on other beans in the context.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionbuildAotContributor(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) Build aBeanInstantiationContributorfor the given bean definition.Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization, postProcessBeforeInitialization
-
Method Details
-
buildAotContributor
BeanInstantiationContributor buildAotContributor(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) Build aBeanInstantiationContributorfor the given bean definition.- Parameters:
beanDefinition- the merged bean definition for the beanbeanType- the inferred type of the beanbeanName- the name of the bean- Returns:
- the contributor to use
-