Uses of Interface
org.springframework.beans.factory.ListableBeanFactory
Package
Description
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
Support package for annotation-driven bean configuration.
AOT support for bean factories.
SPI interfaces and configuration-related convenience classes for bean factories.
Classes supporting the
org.springframework.beans.factory
package.-
Uses of ListableBeanFactory in org.springframework.beans.factory
Modifier and TypeMethodDescriptionstatic String[]
BeanFactoryUtils.beanNamesForAnnotationIncludingAncestors
(ListableBeanFactory lbf, Class<? extends Annotation> annotationType) Get all bean names whoseClass
has the suppliedAnnotation
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.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.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
Modifier and TypeMethodDescriptionBeanFactoryAnnotationUtils.qualifiedBeansOfType
(ListableBeanFactory beanFactory, Class<T> beanType, String qualifier) Retrieve all beans of typeT
from the givenBeanFactory
declaring a qualifier (e.g. -
Uses of ListableBeanFactory in org.springframework.beans.factory.aot
Modifier and TypeMethodDescriptionstatic AotServices.Loader
AotServices.factoriesAndBeans
(ListableBeanFactory beanFactory) Create a newAotServices.Loader
that will obtain AOT services from "META-INF/spring/aot.factories" as well as the givenListableBeanFactory
.static AotServices.Loader
AotServices.factoriesAndBeans
(org.springframework.core.io.support.SpringFactoriesLoader springFactoriesLoader, ListableBeanFactory beanFactory) Create a newAotServices.Loader
that will obtain AOT services from the givenSpringFactoriesLoader
andListableBeanFactory
. -
Uses of ListableBeanFactory in org.springframework.beans.factory.config
Modifier and TypeInterfaceDescriptioninterface
Configuration interface to be implemented by most listable bean factories. -
Uses of ListableBeanFactory in org.springframework.beans.factory.support
Modifier and TypeClassDescriptionclass
Spring's default implementation of theConfigurableListableBeanFactory
andBeanDefinitionRegistry
interfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.class
StaticBeanFactory
implementation which allows one to register existing singleton instances programmatically.