1 16 17 package org.springframework.beans.factory.config; 18 19 import org.springframework.beans.BeansException; 20 import org.springframework.beans.factory.BeanFactory; 21 22 56 public interface AutowireCapableBeanFactory extends BeanFactory { 57 58 65 int AUTOWIRE_NO = 0; 66 67 73 int AUTOWIRE_BY_NAME = 1; 74 75 81 int AUTOWIRE_BY_TYPE = 2; 82 83 88 int AUTOWIRE_CONSTRUCTOR = 3; 89 90 96 int AUTOWIRE_AUTODETECT = 4; 97 98 99 116 Object createBean(Class beanClass, int autowireMode, boolean dependencyCheck) 117 throws BeansException; 118 119 141 Object autowire(Class beanClass, int autowireMode, boolean dependencyCheck) 142 throws BeansException; 143 144 154 void autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck) 155 throws BeansException; 156 157 174 void applyBeanPropertyValues(Object existingBean, String beanName) throws BeansException; 175 176 192 Object configureBean(Object existingBean, String beanName) throws BeansException; 193 194 207 Object initializeBean(Object existingBean, String beanName) throws BeansException; 208 209 219 Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) 220 throws BeansException; 221 222 232 Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) 233 throws BeansException; 234 235 } 236 | Popular Tags |