public interface HierarchicalBeanFactory extends BeanFactory
The corresponding setParentBeanFactory
method for bean
factories that allow setting the parent in a configurable
fashion can be found in the ConfigurableBeanFactory interface.
ConfigurableBeanFactory.setParentBeanFactory(org.springframework.beans.factory.BeanFactory)
FACTORY_BEAN_PREFIX
Modifier and Type | Method and Description |
---|---|
boolean |
containsLocalBean(java.lang.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, or
null if there is none. |
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
@Nullable BeanFactory getParentBeanFactory()
null
if there is none.boolean containsLocalBean(java.lang.String name)
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 queryBeanFactory.containsBean(java.lang.String)