All Implemented Interfaces:
BeanPostProcessor
All Known Implementing Classes:
AutowiredAnnotationBeanPostProcessor, ScriptFactoryPostProcessor, RequiredAnnotationBeanPostProcessor, CommonAnnotationBeanPostProcessor, DefaultAdvisorAutoProxyCreator, AnnotationAwareAspectJAutoProxyCreator, PersistenceAnnotationBeanPostProcessor, BeanNameAutoProxyCreator, SmartInstantiationAwareBeanPostProcessor, InfrastructureAdvisorAutoProxyCreator, InstantiationAwareBeanPostProcessorAdapter, AspectJAwareAdvisorAutoProxyCreator, AbstractAdvisorAutoProxyCreator, AbstractAutoProxyCreator
Typically used to suppress default instantiation for specific target beans, for example to create proxies with special TargetSources (pooling targets, lazily initializing targets, etc), or to implement additional injection strategies such as field injection.
NOTE: This interface is a special purpose interface, mainly for internal use within the framework. It is recommended to implement the plain BeanPostProcessor interface as far as possible, or to derive from InstantiationAwareBeanPostProcessorAdapter in order to be shielded from extensions to this interface.
Juergen - HoellerRod - Johnson1.2 - | Method from org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor Summary: |
|---|
| postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertyValues |
| Method from org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor Detail: |
|---|
This is the ideal callback for performing field injection on the given bean instance. See Spring's own org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor for a typical example. |
If a non-null object is returned by this method, the bean creation process will be short-circuited. The only further processing applied is the #postProcessAfterInitialization callback from the configured BeanPostProcessors . This callback will only be applied to bean definitions with a bean class. In particular, it will not be applied to beans with a "factory-method". Post-processors may implement the extended SmartInstantiationAwareBeanPostProcessor interface in order to predict the type of the bean object that they are going to return here. |
Also allows for replacing the property values to apply, typically through creating a new MutablePropertyValues instance based on the original PropertyValues, adding or removing specific values. |