接口 HierarchicalBeanFactory
- 所有超级接口:
BeanFactory
- 所有已知子接口:
ApplicationContext
,ConfigurableApplicationContext
,ConfigurableBeanFactory
,ConfigurableListableBeanFactory
,ConfigurablePortletApplicationContext
,ConfigurableWebApplicationContext
,WebApplicationContext
- 所有已知实现类:
AbstractApplicationContext
,AbstractAutowireCapableBeanFactory
,AbstractBeanFactory
,AbstractRefreshableApplicationContext
,AbstractRefreshableConfigApplicationContext
,AbstractRefreshablePortletApplicationContext
,AbstractRefreshableWebApplicationContext
,AbstractXmlApplicationContext
,AnnotationConfigApplicationContext
,AnnotationConfigWebApplicationContext
,ClassPathXmlApplicationContext
,DefaultListableBeanFactory
,FileSystemXmlApplicationContext
,GenericApplicationContext
,GenericGroovyApplicationContext
,GenericWebApplicationContext
,GenericXmlApplicationContext
,GroovyWebApplicationContext
,ResourceAdapterApplicationContext
,StaticApplicationContext
,StaticPortletApplicationContext
,StaticWebApplicationContext
,XmlBeanFactory
,XmlPortletApplicationContext
,XmlWebApplicationContext
public interface HierarchicalBeanFactory extends BeanFactory
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.- 从以下版本开始:
- 07.07.2003
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
ConfigurableBeanFactory.setParentBeanFactory(org.springframework.beans.factory.BeanFactory)
字段概要
从接口继承的字段 org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 boolean
containsLocalBean(String name)
Return whether the local bean factory contains a bean of the given name, ignoring beans defined in ancestor contexts.BeanFactory
getParentBeanFactory()
Return the parent bean factory, ornull
if there is none.从接口继承的方法 org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
方法详细资料
getParentBeanFactory
BeanFactory getParentBeanFactory()
Return the parent bean factory, ornull
if there is none.
containsLocalBean
boolean containsLocalBean(String name)
Return 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.- 参数:
name
- the name of the bean to query- 返回:
- whether a bean with the given name is defined in the local factory
- 另请参阅:
BeanFactory.containsBean(java.lang.String)