org.springframework.beans.factory

Interface HierarchicalBeanFactory

    • Method Detail

      • getParentBeanFactory

        @Nullable
        BeanFactory getParentBeanFactory()
        Return the parent bean factory, or null if there is none.
      • containsLocalBean

        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.

        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:
        BeanFactory.containsBean(java.lang.String)