# Uses of Interface
org.springframework.beans.factory.ListableBeanFactory

Packages that use ListableBeanFactory
Package
Description
org.springframework.beans.factory
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
org.springframework.beans.factory.annotation
Support package for annotation-driven bean configuration.
org.springframework.beans.factory.aot
AOT support for bean factories.
org.springframework.beans.factory.config
SPI interfaces and configuration-related convenience classes for bean factories.
org.springframework.beans.factory.support
Classes supporting the `org.springframework.beans.factory` package.

## Uses of ListableBeanFactory in org.springframework.beans.factory

Classes in org.springframework.beans.factory with type parameters of type ListableBeanFactory
Modifier and Type
Interface
Description
`interface`
`BeanFactoryInitializer<F extends ListableBeanFactory>`
Callback interface for initializing a Spring `ListableBeanFactory` prior to entering the singleton pre-instantiation phase.
Methods in org.springframework.beans.factory with parameters of type ListableBeanFactory
Modifier and Type
Method
Description
`static String[]`
BeanFactoryUtils.`beanNamesForAnnotationIncludingAncestors(ListableBeanFactory lbf, Class<? extends Annotation> annotationType)`
Get all bean names whose `Class` has the supplied `Annotation` type, including those defined in ancestor factories, without creating any bean instances yet.
`static String[]`
BeanFactoryUtils.`beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf, Class<?> type)`
Get all bean names for the given type, including those defined in ancestor factories.
`static String[]`
BeanFactoryUtils.`beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf, Class<?> type, boolean includeNonSingletons, boolean allowEagerInit)`
Get all bean names for the given type, including those defined in ancestor factories.
`static String[]`
BeanFactoryUtils.`beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf, org.springframework.core.ResolvableType type)`
Get all bean names for the given type, including those defined in ancestor factories.
`static String[]`
BeanFactoryUtils.`beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf, org.springframework.core.ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)`
Get all bean names for the given type, including those defined in ancestor factories.
`static String[]`
BeanFactoryUtils.`beanNamesIncludingAncestors(ListableBeanFactory lbf)`
Return all bean names in the factory, including ancestor factories.
`static <T> T`
BeanFactoryUtils.`beanOfType(ListableBeanFactory lbf, Class<T> type)`
Return a single bean of the given type or subtypes, not looking in ancestor factories.
`static <T> T`
BeanFactoryUtils.`beanOfType(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)`
Return a single bean of the given type or subtypes, not looking in ancestor factories.
`static <T> T`
BeanFactoryUtils.`beanOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type)`
Return a single bean of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.
`static <T> T`
BeanFactoryUtils.`beanOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)`
Return a single bean of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.
`static <T> Map<String,T>`
BeanFactoryUtils.`beansOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type)`
Return all beans of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.
`static <T> Map<String,T>`
BeanFactoryUtils.`beansOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)`
Return all beans of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.
`static int`
BeanFactoryUtils.`countBeansIncludingAncestors(ListableBeanFactory lbf)`
Count all beans in any hierarchy in which this factory participates.

## Uses of ListableBeanFactory in org.springframework.beans.factory.annotation

Methods in org.springframework.beans.factory.annotation with parameters of type ListableBeanFactory
Modifier and Type
Method
Description
`static <T> Map<String,T>`
BeanFactoryAnnotationUtils.`qualifiedBeansOfType(ListableBeanFactory beanFactory, Class<T> beanType, String qualifier)`
Retrieve all beans of type `T` from the given `BeanFactory` declaring a qualifier (for example, via `<qualifier>` or `@Qualifier`) matching the given qualifier, or having a bean name matching the given qualifier.

## Uses of ListableBeanFactory in org.springframework.beans.factory.aot

Methods in org.springframework.beans.factory.aot with parameters of type ListableBeanFactory
Modifier and Type
Method
Description
`static AotServices.Loader`
AotServices.`factoriesAndBeans(ListableBeanFactory beanFactory)`
Create a new `AotServices.Loader` that will obtain AOT services from "META-INF/spring/aot.factories" as well as the given `ListableBeanFactory`.
`static AotServices.Loader`
AotServices.`factoriesAndBeans(org.springframework.core.io.support.SpringFactoriesLoader springFactoriesLoader, ListableBeanFactory beanFactory)`
Create a new `AotServices.Loader` that will obtain AOT services from the given `SpringFactoriesLoader` and `ListableBeanFactory`.

## Uses of ListableBeanFactory in org.springframework.beans.factory.config

Subinterfaces of ListableBeanFactory in org.springframework.beans.factory.config
Modifier and Type
Interface
Description
`interface`
`ConfigurableListableBeanFactory`
Configuration interface to be implemented by most listable bean factories.

## Uses of ListableBeanFactory in org.springframework.beans.factory.support

Classes in org.springframework.beans.factory.support that implement ListableBeanFactory
Modifier and Type
Class
Description
`class`
`DefaultListableBeanFactory`
Spring's default implementation of the `ConfigurableListableBeanFactory` and `BeanDefinitionRegistry` interfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.
`class`
`StaticListableBeanFactory`
Static `BeanFactory` implementation which allows one to register existing singleton instances programmatically.