接口的使用
org.springframework.beans.factory.ListableBeanFactory
使用ListableBeanFactory的程序包 程序包 说明 org.springframework.aop.aspectj.annotation Classes enabling AspectJ 5 @Annotated classes to be used in Spring AOP.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 theorg.springframework.beans.factory
package.org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactory
implementation, including a standard "spring-beans" XSD.org.springframework.context This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.dao.support Support classes for DAO implementations, providing miscellaneous utility methods.org.springframework.jca.context Integration package that allows for deploying a Spring application context as a JCA 1.7 compliant RAR file.org.springframework.jmx.export This package provides declarative creation and registration of Spring-managed beans as JMX MBeans.org.springframework.orm.jpa Package providing integration of JPA (Java Persistence API) with Spring concepts.org.springframework.web.context Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.web.jsf Support classes for integrating a JSF web layer with a Spring service layer which is hosted in a Spring root WebApplicationContext.org.springframework.aop.aspectj.annotation中ListableBeanFactory的使用
参数类型为ListableBeanFactory的org.springframework.aop.aspectj.annotation中的构造器 构造器 说明 BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.org.springframework.beans.factory中ListableBeanFactory的使用
参数类型为ListableBeanFactory的org.springframework.beans.factory中的方法 修饰符和类型 方法 说明 static 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, ResolvableType type)
Get all bean names for the given type, including those defined in ancestor factories.static String[]
BeanFactoryUtils. beanNamesForTypeIncludingAncestors(ListableBeanFactory lbf, 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.org.springframework.beans.factory.annotation中ListableBeanFactory的使用
参数类型为ListableBeanFactory的org.springframework.beans.factory.annotation中的方法 修饰符和类型 方法 说明 static <T> Map<String,T>
BeanFactoryAnnotationUtils. qualifiedBeansOfType(ListableBeanFactory beanFactory, Class<T> beanType, String qualifier)
Retrieve all bean of typeT
from the givenBeanFactory
declaring a qualifier (e.g. via<qualifier>
or@Qualifier
) matching the given qualifier, or having a bean name matching the given qualifier.org.springframework.beans.factory.config中ListableBeanFactory的使用
org.springframework.beans.factory.config中ListableBeanFactory的子接口 修饰符和类型 接口 说明 interface
ConfigurableListableBeanFactory
Configuration interface to be implemented by most listable bean factories.org.springframework.beans.factory.support中ListableBeanFactory的使用
实现ListableBeanFactory的org.springframework.beans.factory.support中的类 修饰符和类型 类 说明 class
DefaultListableBeanFactory
Spring's default implementation of theConfigurableListableBeanFactory
andBeanDefinitionRegistry
interfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.class
StaticListableBeanFactory
StaticBeanFactory
implementation which allows one to register existing singleton instances programmatically.org.springframework.beans.factory.xml中ListableBeanFactory的使用
实现ListableBeanFactory的org.springframework.beans.factory.xml中的类 修饰符和类型 类 说明 class
XmlBeanFactory
已过时。as of Spring 3.1 in favor ofDefaultListableBeanFactory
andXmlBeanDefinitionReader
org.springframework.context中ListableBeanFactory的使用
org.springframework.context中ListableBeanFactory的子接口 修饰符和类型 接口 说明 interface
ApplicationContext
Central interface to provide configuration for an application.interface
ConfigurableApplicationContext
SPI interface to be implemented by most if not all application contexts.org.springframework.context.annotation中ListableBeanFactory的使用
实现ListableBeanFactory的org.springframework.context.annotation中的类 修饰符和类型 类 说明 class
AnnotationConfigApplicationContext
Standalone application context, accepting component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
types and JSR-330 compliant classes usingjavax.inject
annotations.org.springframework.context.support中ListableBeanFactory的使用
实现ListableBeanFactory的org.springframework.context.support中的类 修饰符和类型 类 说明 class
AbstractApplicationContext
Abstract implementation of theApplicationContext
interface.class
AbstractRefreshableApplicationContext
Base class forApplicationContext
implementations which are supposed to support multiple calls toAbstractApplicationContext.refresh()
, creating a new internal bean factory instance every time.class
AbstractRefreshableConfigApplicationContext
AbstractRefreshableApplicationContext
subclass that adds common handling of specified config locations.class
AbstractXmlApplicationContext
Convenient base class forApplicationContext
implementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader
.class
ClassPathXmlApplicationContext
Standalone XML application context, taking the context definition files from the class path, interpreting plain paths as class path resource names that include the package path (e.g.class
FileSystemXmlApplicationContext
Standalone XML application context, taking the context definition files from the file system or from URLs, interpreting plain paths as relative file system locations (e.g.class
GenericApplicationContext
Generic ApplicationContext implementation that holds a single internalDefaultListableBeanFactory
instance and does not assume a specific bean definition format.class
GenericGroovyApplicationContext
AnApplicationContext
implementation that extendsGenericApplicationContext
and implementsGroovyObject
such that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String)
.class
GenericXmlApplicationContext
Convenient application context with built-in XML support.class
StaticApplicationContext
ApplicationContext
implementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.org.springframework.dao.support中ListableBeanFactory的使用
参数类型为ListableBeanFactory的org.springframework.dao.support中的方法 修饰符和类型 方法 说明 protected PersistenceExceptionTranslator
PersistenceExceptionTranslationInterceptor. detectPersistenceExceptionTranslators(ListableBeanFactory bf)
Detect all PersistenceExceptionTranslators in the given BeanFactory.参数类型为ListableBeanFactory的org.springframework.dao.support中的构造器 构造器 说明 PersistenceExceptionTranslationInterceptor(ListableBeanFactory beanFactory)
Create a new PersistenceExceptionTranslationInterceptor, autodetecting PersistenceExceptionTranslators in the given BeanFactory.org.springframework.jca.context中ListableBeanFactory的使用
实现ListableBeanFactory的org.springframework.jca.context中的类 修饰符和类型 类 说明 class
ResourceAdapterApplicationContext
ApplicationContext
implementation for a JCA ResourceAdapter.org.springframework.jmx.export中ListableBeanFactory的使用
参数类型为ListableBeanFactory的org.springframework.jmx.export中的方法 修饰符和类型 方法 说明 protected boolean
MBeanExporter. isBeanDefinitionLazyInit(ListableBeanFactory beanFactory, String beanName)
Return whether the specified bean definition should be considered as lazy-init.org.springframework.orm.jpa中ListableBeanFactory的使用
参数类型为ListableBeanFactory的org.springframework.orm.jpa中的方法 修饰符和类型 方法 说明 static EntityManagerFactory
EntityManagerFactoryUtils. findEntityManagerFactory(ListableBeanFactory beanFactory, String unitName)
Find an EntityManagerFactory with the given name in the given Spring application context (represented as ListableBeanFactory).org.springframework.web.context中ListableBeanFactory的使用
org.springframework.web.context中ListableBeanFactory的子接口 修饰符和类型 接口 说明 interface
ConfigurableWebApplicationContext
Interface to be implemented by configurable web application contexts.interface
WebApplicationContext
Interface to provide configuration for a web application.org.springframework.web.context.support中ListableBeanFactory的使用
实现ListableBeanFactory的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
AbstractRefreshableWebApplicationContext
AbstractRefreshableApplicationContext
subclass which implements theConfigurableWebApplicationContext
interface for web environments.class
AnnotationConfigWebApplicationContext
WebApplicationContext
implementation which accepts component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjavax.inject
annotations.class
GenericWebApplicationContext
Subclass ofGenericApplicationContext
, suitable for web environments.class
GroovyWebApplicationContext
WebApplicationContext
implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader
.class
StaticWebApplicationContext
StaticWebApplicationContext
implementation for testing.class
XmlWebApplicationContext
WebApplicationContext
implementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
.org.springframework.web.jsf中ListableBeanFactory的使用
返回ListableBeanFactory的org.springframework.web.jsf中的方法 修饰符和类型 方法 说明 protected ListableBeanFactory
DelegatingPhaseListenerMulticaster. getBeanFactory(FacesContext facesContext)
Retrieve the Spring BeanFactory to delegate bean name resolution to.