org.springframework.beans.factory
Interface HierarchicalBeanFactory

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.

Since07.07.2003
VersionNot specified.
AuthorRod Johnson, Juergen Hoeller
Wiki javadoc Use textile entry format.
Add your comments here.
Method Summary
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, or null if there is none.
containsLocalBean
public 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.

Parameters
TypeNameDescription
String name the name of the bean to query
Wiki javadoc Use textile entry format.
Add your comments here.
getParentBeanFactory
public BeanFactory getParentBeanFactory ( )
Return the parent bean factory, or null if there is none.
Wiki javadoc Use textile entry format.
Add your comments here.