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.config |
SPI interfaces and configuration-related convenience classes for bean factories.
|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
org.springframework.beans.factory.xml |
Contains an abstract XML-based
BeanFactory implementation,
including a standard "spring-beans" XSD. |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
BeanFactoryUtils.beanNamesForAnnotationIncludingAncestors(ListableBeanFactory lbf,
java.lang.Class<? extends java.lang.annotation.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 java.lang.String[] |
BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf,
java.lang.Class<?> type)
Get all bean names for the given type, including those defined in ancestor
factories.
|
static java.lang.String[] |
BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf,
java.lang.Class<?> type,
boolean includeNonSingletons,
boolean allowEagerInit)
Get all bean names for the given type, including those defined in ancestor
factories.
|
static java.lang.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 java.lang.String[] |
BeanFactoryUtils.beanNamesIncludingAncestors(ListableBeanFactory lbf)
Return all bean names in the factory, including ancestor factories.
|
static <T> T |
BeanFactoryUtils.beanOfType(ListableBeanFactory lbf,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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> java.util.Map<java.lang.String,T> |
BeanFactoryUtils.beansOfTypeIncludingAncestors(ListableBeanFactory lbf,
java.lang.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> java.util.Map<java.lang.String,T> |
BeanFactoryUtils.beansOfTypeIncludingAncestors(ListableBeanFactory lbf,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Map<java.lang.String,T> |
BeanFactoryAnnotationUtils.qualifiedBeansOfType(ListableBeanFactory beanFactory,
java.lang.Class<T> beanType,
java.lang.String qualifier)
Retrieve all bean of type
T from the given BeanFactory declaring a
qualifier (e.g. |
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurableListableBeanFactory
Configuration interface to be implemented by most listable bean factories.
|
Modifier and Type | Class and 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 to register existing singleton instances programmatically. |
Modifier and Type | Class and Description |
---|---|
class |
XmlBeanFactory
Deprecated.
as of Spring 3.1 in favor of
DefaultListableBeanFactory and
XmlBeanDefinitionReader |