| org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
All known Subclasses: org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator, org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor,
Method Summary | |
boolean | postProcessAfterInstantiation(Object bean, String beanName) Perform operations after the bean has been instantiated, via a constructor or factory method,
but before Spring property population (from explicit properties or autowiring) occurs.
Parameters: bean - the bean instance created, but whose properties have not yet been set Parameters: beanName - the name of the bean true if properties should be set on the bean; false if property population should be skipped. | Object | postProcessBeforeInstantiation(Class beanClass, String beanName) Apply this BeanPostProcessor before the target bean gets instantiated.
The returned bean object may be a proxy to use instead of the target bean,
effectively suppressing default instantiation of the target bean.
If a non-null object is returned by this method, the bean creation process
will be short-circuited. | PropertyValues | postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName) Post-process the given property values before the factory applies them
to the given bean. |
postProcessAfterInstantiation | boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException(Code) | | Perform operations after the bean has been instantiated, via a constructor or factory method,
but before Spring property population (from explicit properties or autowiring) occurs.
Parameters: bean - the bean instance created, but whose properties have not yet been set Parameters: beanName - the name of the bean true if properties should be set on the bean; false if property population should be skipped. Normal implementations should return true .Returning false will also prevent any subsequent InstantiationAwareBeanPostProcessorinstances being invoked on this bean instance. throws: org.springframework.beans.BeansException - in case of errors |
postProcessPropertyValues | PropertyValues postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName) throws BeansException(Code) | | Post-process the given property values before the factory applies them
to the given bean. Allows for checking whether all dependencies have been
satisfied, for example based on a "Required" annotation on bean property setters.
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.
Parameters: pvs - the property values that the factory is about to apply (never null ) Parameters: pds - the relevant property descriptors for the target bean (with ignoreddependency types - which the factory handles specifically - already filtered out) Parameters: bean - the bean instance created, but whose properties have not yet been set Parameters: beanName - the name of the bean the actual property values to apply to to the given bean(can be the passed-in PropertyValues instance), or null to skip property population throws: org.springframework.beans.BeansException - in case of errors See Also: org.springframework.beans.MutablePropertyValues |
|
|