public interface

HierarchicalBeanFactory

implements BeanFactory
org.springframework.beans.factory.HierarchicalBeanFactory
Known Indirect Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface org.springframework.beans.factory.BeanFactory
Public Methods
abstract boolean containsLocalBean(String name)
Return whether the local bean factory contains a bean of the given name, ignoring beans defined in ancestor contexts.
abstract BeanFactory getParentBeanFactory()
Return the parent bean factory, or null if there is none.
[Expand]
Inherited Methods
From interface org.springframework.beans.factory.BeanFactory

Public Methods

public abstract boolean containsLocalBean (String name)

Also: SpringBeans

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
name the name of the bean to query
Returns
  • whether a bean with the given name is defined in the local factory

public abstract BeanFactory getParentBeanFactory ()

Also: SpringBeans

Return the parent bean factory, or null if there is none.