| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SPI interface to be implemented by most if not all bean factories. Provides means to configure a bean factory in addition to the bean factory client methods in the BeanFactory interface.
Allows for framework-internal plug'n'play even when needing access to bean factory configuration methods.
| Method Summary | |
void | addBeanPostProcessor(BeanPostProcessor beanPostProcessor)Add a new BeanPostPrcoessor that will get applied to beans created with this factory. |
void | destroySingletons()Destroy all cached singletons in this factory. |
ConstructorArgumentValues | getConstructorArgumentValues(String beanName)Return the registered ConstructorArgumentValues for the given bean. |
MutablePropertyValues | getPropertyValues(String beanName)Return the registered PropertyValues for the given bean. |
void | ignoreDependencyType(Class type)Ignore the given dependency type for autowiring. |
void | registerAlias(String beanName, String alias)Given a bean name, create an alias. |
void | registerCustomEditor(Class requiredType, PropertyEditor propertyEditor)Register the given custom property editor for all properties of the given type. |
void | registerSingleton(String beanName, Object singletonObject)Register the given existing object as singleton in the bean factory, under the given bean name. |
void | setParentBeanFactory(BeanFactory parentBeanFactory)Set the parent of this bean factory. |
| Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory |
getParentBeanFactory |
| Methods inherited from interface org.springframework.beans.factory.BeanFactory |
containsBean, getAliases, getBean, getBean, isSingleton |
| Method Detail |
public void addBeanPostProcessor(BeanPostProcessor beanPostProcessor)
public void destroySingletons()
public ConstructorArgumentValues getConstructorArgumentValues(String beanName)
throws org.springframework.beans.BeansException
public MutablePropertyValues getPropertyValues(String beanName)
throws org.springframework.beans.BeansException
public void ignoreDependencyType(Class type)
This will typically be used for dependencies that are resolved in other ways, like BeanFactory through BeanFactoryAware or ApplicationContext through ApplicationContextAware.
public void registerAlias(String beanName, String alias)
throws org.springframework.beans.BeansException
public void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor)
public void registerSingleton(String beanName, Object singletonObject)
throws org.springframework.beans.BeansException
public void setParentBeanFactory(BeanFactory parentBeanFactory)
Note that the parent shouldn't be changed: It should only be set outside a constructor if it isn't available when an object of this class is created.
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||