1 16 17 package org.springframework.beans.factory.config; 18 19 import java.beans.PropertyEditor ; 20 21 import org.springframework.beans.PropertyEditorRegistrar; 22 import org.springframework.beans.TypeConverter; 23 import org.springframework.beans.factory.BeanDefinitionStoreException; 24 import org.springframework.beans.factory.BeanFactory; 25 import org.springframework.beans.factory.HierarchicalBeanFactory; 26 27 45 public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry { 46 47 52 String SCOPE_SINGLETON = "singleton"; 53 54 59 String SCOPE_PROTOTYPE = "prototype"; 60 61 62 71 void setParentBeanFactory(BeanFactory parentBeanFactory) throws IllegalStateException ; 72 73 83 void setBeanClassLoader(ClassLoader beanClassLoader); 84 85 88 ClassLoader getBeanClassLoader(); 89 90 97 void setCacheBeanMetadata(boolean cacheBeanMetadata); 98 99 103 boolean isCacheBeanMetadata(); 104 105 114 void addPropertyEditorRegistrar(PropertyEditorRegistrar registrar); 115 116 127 void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor); 128 129 133 TypeConverter getTypeConverter(); 134 135 140 void addBeanPostProcessor(BeanPostProcessor beanPostProcessor); 141 142 145 int getBeanPostProcessorCount(); 146 147 152 void registerScope(String scopeName, Scope scope); 153 154 161 String [] getRegisteredScopeNames(); 162 163 171 Scope getRegisteredScope(String scopeName); 172 173 181 void copyConfigurationFrom(ConfigurableBeanFactory otherFactory); 182 183 193 void registerAlias(String beanName, String alias) throws BeanDefinitionStoreException; 194 195 199 boolean isCurrentlyInCreation(String beanName); 200 201 209 void destroyBean(String beanName, Object beanInstance); 210 211 217 void destroyScopedBean(String beanName); 218 219 225 void destroySingletons(); 226 227 } 228 | Popular Tags |