Interface HierarchicalBeanFactory
- All Superinterfaces:
- BeanFactory
- All Known Subinterfaces:
- ApplicationContext,- ConfigurableApplicationContext,- ConfigurableBeanFactory,- ConfigurableListableBeanFactory,- ConfigurableWebApplicationContext,- WebApplicationContext
- All Known Implementing Classes:
- AbstractApplicationContext,- AbstractAutowireCapableBeanFactory,- AbstractBeanFactory,- AbstractRefreshableApplicationContext,- AbstractRefreshableConfigApplicationContext,- AbstractRefreshableWebApplicationContext,- AbstractXmlApplicationContext,- AnnotationConfigApplicationContext,- AnnotationConfigWebApplicationContext,- ClassPathXmlApplicationContext,- DefaultListableBeanFactory,- FileSystemXmlApplicationContext,- GenericApplicationContext,- GenericGroovyApplicationContext,- GenericWebApplicationContext,- GenericXmlApplicationContext,- GroovyWebApplicationContext,- StaticApplicationContext,- StaticWebApplicationContext,- XmlWebApplicationContext
Sub-interface implemented by bean factories that can be part
 of a hierarchy.
 
The corresponding setParentBeanFactory method for bean
 factories that allow setting the parent in a configurable
 fashion can be found in the ConfigurableBeanFactory interface.
- Since:
- 07.07.2003
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.beans.factory.BeanFactoryFACTORY_BEAN_PREFIX
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontainsLocalBean(String name) Return whether the local bean factory contains a bean of the given name, ignoring beans defined in ancestor contexts.Return the parent bean factory, ornullif there is none.Methods inherited from interface org.springframework.beans.factory.BeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
- 
Method Details- 
getParentBeanFactoryReturn the parent bean factory, ornullif there is none.
- 
containsLocalBeanReturn whether the local bean factory contains a bean of the given name, ignoring beans defined in ancestor contexts.This is an alternative to containsBean, ignoring a bean of the given name from an ancestor bean factory.- Parameters:
- name- the name of the bean to query
- Returns:
- whether a bean with the given name is defined in the local factory
- See Also:
 
 
-