1 16 17 package org.springframework.beans.factory.config; 18 19 import java.beans.PropertyDescriptor ; 20 21 import org.springframework.beans.BeansException; 22 import org.springframework.beans.PropertyValues; 23 24 34 public abstract class InstantiationAwareBeanPostProcessorAdapter implements SmartInstantiationAwareBeanPostProcessor { 35 36 public Class predictBeanType(Class beanClass, String beanName) { 37 return null; 38 } 39 40 public Object postProcessBeforeInstantiation(Class beanClass, String beanName) throws BeansException { 41 return null; 42 } 43 44 public boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException { 45 return true; 46 } 47 48 public PropertyValues postProcessPropertyValues( 49 PropertyValues pvs, PropertyDescriptor [] pds, Object bean, String beanName) 50 throws BeansException { 51 52 return pvs; 53 } 54 55 public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException { 56 return bean; 57 } 58 59 public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { 60 return bean; 61 } 62 63 } 64 | Popular Tags |