接口的使用
org.springframework.beans.factory.BeanFactory
使用BeanFactory的程序包 程序包 说明 org.springframework.aop.aspectj AspectJ integration package.org.springframework.aop.aspectj.annotation Classes enabling AspectJ 5 @Annotated classes to be used in Spring AOP.org.springframework.aop.config Support package for declarative AOP configuration, with XML schema being the primary configuration format.org.springframework.aop.framework Package containing Spring's basic AOP infrastructure, compliant with the AOP Alliance interfaces.org.springframework.aop.framework.autoproxy Bean post-processors for use in ApplicationContexts to simplify AOP usage by automatically creating AOP proxies without the need to use a ProxyFactoryBean.org.springframework.aop.framework.autoproxy.target org.springframework.aop.interceptor Provides miscellaneous interceptor implementations.org.springframework.aop.scope Support for AOP-based scoping of target objects, with configurable backend.org.springframework.aop.support Convenience classes for using Spring's AOP API.org.springframework.aop.target org.springframework.aop.target.dynamic 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.wiring Mechanism to determine bean wiring metadata from a bean instance.org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactory
implementation, including a standard "spring-beans" XSD.org.springframework.cache.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.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.event Support classes for application events, like standard context events.org.springframework.context.expression Expression parsing support within a Spring application context.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.context.weaving Load-time weaving support for a Spring application context, building on Spring'sLoadTimeWeaver
abstraction.org.springframework.dao.annotation Annotation support for DAOs.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.jdbc.datasource.lookup Provides a strategy for looking up JDBC DataSources by name.org.springframework.jms.annotation Annotations and support classes for declarative JMS listener endpoints.org.springframework.jms.config Support package for declarative messaging configuration, with Java configuration and XML schema support.org.springframework.jms.support.destination Support classes for Spring's JMS framework.org.springframework.jmx.export This package provides declarative creation and registration of Spring-managed beans as JMX MBeans.org.springframework.jmx.export.annotation Java 5 annotations for MBean exposure.org.springframework.jndi The classes in this package make JNDI easier to use, facilitating the accessing of configuration stored in JNDI, and provide useful superclasses for JNDI access classes.org.springframework.jndi.support Support classes for JNDI usage, including a JNDI-based BeanFactory implementation.org.springframework.messaging.core Defines interfaces and implementation classes for messaging templates.org.springframework.messaging.handler Basic abstractions for working with message handler methods.org.springframework.messaging.handler.annotation.support Support classes for working with annotated message-handling methods.org.springframework.orm.hibernate5 Package providing integration of Hibernate 5.x with Spring concepts.org.springframework.orm.jpa Package providing integration of JPA (Java Persistence API) with Spring concepts.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpa
package.org.springframework.remoting.jaxws Remoting classes for Web Services via JAX-WS (the successor of JAX-RPC), as included in Java 6 and Java EE 5.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.scheduling.quartz Support classes for the open source scheduler Quartz, allowing to set up Quartz Schedulers, JobDetails and Triggers as beans in a Spring context.org.springframework.scripting.groovy Package providing integration of Groovy into Spring's scripting infrastructure.org.springframework.scripting.support Support classes for Spring's scripting package.org.springframework.transaction.interceptor AOP-based solution for declarative transaction demarcation.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.request.async Support for asynchronous request processing.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.web.method Common infrastructure for handler method processing, as used by Spring MVC'sorg.springframework.web.servlet.mvc.method
package.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.view Provides standard View and ViewResolver implementations, including abstract base classes for custom implementations.org.springframework.web.socket.client.standard Client-side classes for use with standard Java WebSocket endpoints.org.springframework.web.socket.handler ConvenientWebSocketHandler
implementations and decorators.org.springframework.web.socket.server.standard Server-side classes for use with standard JSR-356 WebSocket endpoints.org.springframework.aop.aspectj中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.aspectj中的方法 修饰符和类型 方法 说明 void
AspectJExpressionPointcut. setBeanFactory(BeanFactory beanFactory)
void
AspectJExpressionPointcutAdvisor. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.aspectj.annotation中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.aspectj.annotation中的构造器 构造器 说明 BeanFactoryAspectInstanceFactory(BeanFactory beanFactory, String name)
Create a BeanFactoryAspectInstanceFactory.BeanFactoryAspectInstanceFactory(BeanFactory beanFactory, String name, Class<?> type)
Create a BeanFactoryAspectInstanceFactory, providing a type that AspectJ should introspect to create AJType metadata.PrototypeAspectInstanceFactory(BeanFactory beanFactory, String name)
Create a PrototypeAspectInstanceFactory.ReflectiveAspectJAdvisorFactory(BeanFactory beanFactory)
Create a newReflectiveAspectJAdvisorFactory
, propagating the givenBeanFactory
to the createdAspectJExpressionPointcut
instances, for bean pointcut handling as well as consistentClassLoader
resolution.org.springframework.aop.config中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.config中的方法 修饰符和类型 方法 说明 void
MethodLocatingFactoryBean. setBeanFactory(BeanFactory beanFactory)
void
SimpleBeanFactoryAwareAspectInstanceFactory. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.framework中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.framework中的方法 修饰符和类型 方法 说明 void
ProxyFactoryBean. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.framework.autoproxy中BeanFactory的使用
返回BeanFactory的org.springframework.aop.framework.autoproxy中的方法 修饰符和类型 方法 说明 protected BeanFactory
AbstractAutoProxyCreator. getBeanFactory()
Return the owningBeanFactory
.参数类型为BeanFactory的org.springframework.aop.framework.autoproxy中的方法 修饰符和类型 方法 说明 void
AbstractAdvisorAutoProxyCreator. setBeanFactory(BeanFactory beanFactory)
void
AbstractAutoProxyCreator. setBeanFactory(BeanFactory beanFactory)
void
AbstractBeanFactoryAwareAdvisingPostProcessor. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.framework.autoproxy.target中BeanFactory的使用
返回BeanFactory的org.springframework.aop.framework.autoproxy.target中的方法 修饰符和类型 方法 说明 protected BeanFactory
AbstractBeanFactoryBasedTargetSourceCreator. getBeanFactory()
Return the BeanFactory that this TargetSourceCreators runs in.参数类型为BeanFactory的org.springframework.aop.framework.autoproxy.target中的方法 修饰符和类型 方法 说明 void
AbstractBeanFactoryBasedTargetSourceCreator. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.interceptor中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.interceptor中的方法 修饰符和类型 方法 说明 protected Executor
AsyncExecutionAspectSupport. findQualifiedExecutor(BeanFactory beanFactory, String qualifier)
Retrieve a target executor for the given qualifier.protected Executor
AsyncExecutionAspectSupport. getDefaultExecutor(BeanFactory beanFactory)
Retrieve or build a default executor for this advice instance.protected Executor
AsyncExecutionInterceptor. getDefaultExecutor(BeanFactory beanFactory)
This implementation searches for a uniqueTaskExecutor
bean in the context, or for anExecutor
bean named "taskExecutor" otherwise.void
AsyncExecutionAspectSupport. setBeanFactory(BeanFactory beanFactory)
Set theBeanFactory
to be used when looking up executors by qualifier or when relying on the default executor lookup algorithm.org.springframework.aop.scope中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.scope中的方法 修饰符和类型 方法 说明 void
ScopedProxyFactoryBean. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.support中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 void
AbstractBeanFactoryPointcutAdvisor. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.target中BeanFactory的使用
返回BeanFactory的org.springframework.aop.target中的方法 修饰符和类型 方法 说明 BeanFactory
AbstractBeanFactoryBasedTargetSource. getBeanFactory()
Return the owning BeanFactory.参数类型为BeanFactory的org.springframework.aop.target中的方法 修饰符和类型 方法 说明 void
AbstractBeanFactoryBasedTargetSource. setBeanFactory(BeanFactory beanFactory)
Set the owning BeanFactory.void
AbstractPoolingTargetSource. setBeanFactory(BeanFactory beanFactory)
void
AbstractPrototypeBasedTargetSource. setBeanFactory(BeanFactory beanFactory)
org.springframework.aop.target.dynamic中BeanFactory的使用
参数类型为BeanFactory的org.springframework.aop.target.dynamic中的方法 修饰符和类型 方法 说明 protected Object
BeanFactoryRefreshableTargetSource. obtainFreshBean(BeanFactory beanFactory, String beanName)
A template method that subclasses may override to provide a fresh target object for the given bean factory and bean name.参数类型为BeanFactory的org.springframework.aop.target.dynamic中的构造器 构造器 说明 BeanFactoryRefreshableTargetSource(BeanFactory beanFactory, String beanName)
Create a new BeanFactoryRefreshableTargetSource for the given bean factory and bean name.org.springframework.beans.factory中BeanFactory的使用
org.springframework.beans.factory中BeanFactory的子接口 修饰符和类型 接口 说明 interface
HierarchicalBeanFactory
Sub-interface implemented by bean factories that can be part of a hierarchy.interface
ListableBeanFactory
Extension of theBeanFactory
interface to be implemented by bean factories that can enumerate all their bean instances, rather than attempting bean lookup by name one by one as requested by clients.返回BeanFactory的org.springframework.beans.factory中的方法 修饰符和类型 方法 说明 BeanFactory
HierarchicalBeanFactory. getParentBeanFactory()
Return the parent bean factory, ornull
if there is none.参数类型为BeanFactory的org.springframework.beans.factory中的方法 修饰符和类型 方法 说明 void
BeanFactoryAware. setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance.org.springframework.beans.factory.annotation中BeanFactory的使用
参数类型为BeanFactory的org.springframework.beans.factory.annotation中的方法 修饰符和类型 方法 说明 static boolean
BeanFactoryAnnotationUtils. isQualifierMatch(Predicate<String> qualifier, String beanName, BeanFactory beanFactory)
Check whether the named bean declares a qualifier of the given name.static <T> T
BeanFactoryAnnotationUtils. qualifiedBeanOfType(BeanFactory beanFactory, Class<T> beanType, String qualifier)
Obtain a 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.void
AutowiredAnnotationBeanPostProcessor. setBeanFactory(BeanFactory beanFactory)
void
RequiredAnnotationBeanPostProcessor. setBeanFactory(BeanFactory beanFactory)
已过时。org.springframework.beans.factory.config中BeanFactory的使用
org.springframework.beans.factory.config中BeanFactory的子接口 修饰符和类型 接口 说明 interface
AutowireCapableBeanFactory
Extension of theBeanFactory
interface to be implemented by bean factories that are capable of autowiring, provided that they want to expose this functionality for existing bean instances.interface
ConfigurableBeanFactory
Configuration interface to be implemented by most bean factories.interface
ConfigurableListableBeanFactory
Configuration interface to be implemented by most listable bean factories.返回BeanFactory的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 protected BeanFactory
AbstractFactoryBean. getBeanFactory()
Return the BeanFactory that this bean runs in.参数类型为BeanFactory的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 Object
DependencyDescriptor. resolveCandidate(String beanName, Class<?> requiredType, BeanFactory beanFactory)
Resolve the specified bean name, as a candidate result of the matching algorithm for this dependency, to a bean instance from the given factory.Object
DependencyDescriptor. resolveShortcut(BeanFactory beanFactory)
Resolve a shortcut for this dependency against the given factory, for example taking some pre-resolved information into account.void
AbstractFactoryBean. setBeanFactory(BeanFactory beanFactory)
void
MethodInvokingBean. setBeanFactory(BeanFactory beanFactory)
void
PlaceholderConfigurerSupport. setBeanFactory(BeanFactory beanFactory)
Only necessary to check that we're not parsing our own bean definition, to avoid failing on unresolvable placeholders in properties file locations.void
PropertyPathFactoryBean. setBeanFactory(BeanFactory beanFactory)
void
ServiceLocatorFactoryBean. setBeanFactory(BeanFactory beanFactory)
void
ConfigurableBeanFactory. setParentBeanFactory(BeanFactory parentBeanFactory)
Set the parent of this bean factory.org.springframework.beans.factory.support中BeanFactory的使用
实现BeanFactory的org.springframework.beans.factory.support中的类 修饰符和类型 类 说明 class
AbstractAutowireCapableBeanFactory
Abstract bean factory superclass that implements default bean creation, with the full capabilities specified by theRootBeanDefinition
class.class
AbstractBeanFactory
Abstract base class forBeanFactory
implementations, providing the full capabilities of theConfigurableBeanFactory
SPI.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.返回BeanFactory的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 protected BeanFactory
GenericTypeAwareAutowireCandidateResolver. getBeanFactory()
BeanFactory
AbstractBeanFactory. getParentBeanFactory()
参数类型为BeanFactory的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 Object
InstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner)
Return an instance of the bean with the given name in this factory.Object
InstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args)
Return an instance of the bean with the given name in this factory, creating it via the given factory method.Object
InstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args)
Return an instance of the bean with the given name in this factory, creating it via the given constructor.Object
SimpleInstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner)
Object
SimpleInstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args)
Object
SimpleInstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args)
protected Object
CglibSubclassingInstantiationStrategy. instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner)
protected Object
CglibSubclassingInstantiationStrategy. instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args)
protected Object
SimpleInstantiationStrategy. instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner)
Subclasses can override this method, which is implemented to throw UnsupportedOperationException, if they can instantiate an object with the Method Injection specified in the given RootBeanDefinition.protected Object
SimpleInstantiationStrategy. instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args)
Subclasses can override this method, which is implemented to throw UnsupportedOperationException, if they can instantiate an object with the Method Injection specified in the given RootBeanDefinition.void
GenericTypeAwareAutowireCandidateResolver. setBeanFactory(BeanFactory beanFactory)
void
AbstractBeanFactory. setParentBeanFactory(BeanFactory parentBeanFactory)
参数类型为BeanFactory的org.springframework.beans.factory.support中的构造器 构造器 说明 AbstractAutowireCapableBeanFactory(BeanFactory parentBeanFactory)
Create a new AbstractAutowireCapableBeanFactory with the given parent.AbstractBeanFactory(BeanFactory parentBeanFactory)
Create a new AbstractBeanFactory with the given parent.DefaultListableBeanFactory(BeanFactory parentBeanFactory)
Create a new DefaultListableBeanFactory with the given parent.org.springframework.beans.factory.wiring中BeanFactory的使用
参数类型为BeanFactory的org.springframework.beans.factory.wiring中的方法 修饰符和类型 方法 说明 void
BeanConfigurerSupport. setBeanFactory(BeanFactory beanFactory)
Set theBeanFactory
in which this aspect must configure beans.org.springframework.beans.factory.xml中BeanFactory的使用
实现BeanFactory的org.springframework.beans.factory.xml中的类 修饰符和类型 类 说明 class
XmlBeanFactory
已过时。as of Spring 3.1 in favor ofDefaultListableBeanFactory
andXmlBeanDefinitionReader
参数类型为BeanFactory的org.springframework.beans.factory.xml中的构造器 构造器 说明 XmlBeanFactory(Resource resource, BeanFactory parentBeanFactory)
已过时。Create a new XmlBeanFactory with the given input stream, which must be parsable using DOM.org.springframework.cache.interceptor中BeanFactory的使用
参数类型为BeanFactory的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 void
CacheAspectSupport. setBeanFactory(BeanFactory beanFactory)
Set the containingBeanFactory
forCacheManager
and other service lookups.void
CacheProxyFactoryBean. setBeanFactory(BeanFactory beanFactory)
org.springframework.cache.jcache.interceptor中BeanFactory的使用
参数类型为BeanFactory的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 void
DefaultJCacheOperationSource. setBeanFactory(BeanFactory beanFactory)
org.springframework.context中BeanFactory的使用
org.springframework.context中BeanFactory的子接口 修饰符和类型 接口 说明 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中BeanFactory的使用
实现BeanFactory的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.参数类型为BeanFactory的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 protected Object
CommonAnnotationBeanPostProcessor. autowireResource(BeanFactory factory, CommonAnnotationBeanPostProcessor.LookupElement element, String requestingBeanName)
Obtain a resource object for the given name and type through autowiring based on the given factory.void
CommonAnnotationBeanPostProcessor. setBeanFactory(BeanFactory beanFactory)
void
MBeanExportConfiguration. setBeanFactory(BeanFactory beanFactory)
void
CommonAnnotationBeanPostProcessor. setJndiFactory(BeanFactory jndiFactory)
Specify the factory for objects to be injected into@Resource
/@WebServiceRef
/@EJB
annotated fields and setter methods, formappedName
attributes that point directly into JNDI.void
CommonAnnotationBeanPostProcessor. setResourceFactory(BeanFactory resourceFactory)
Specify the factory for objects to be injected into@Resource
/@WebServiceRef
/@EJB
annotated fields and setter methods, forname
attributes and default names.org.springframework.context.event中BeanFactory的使用
参数类型为BeanFactory的org.springframework.context.event中的方法 修饰符和类型 方法 说明 void
AbstractApplicationEventMulticaster. setBeanFactory(BeanFactory beanFactory)
参数类型为BeanFactory的org.springframework.context.event中的构造器 构造器 说明 SimpleApplicationEventMulticaster(BeanFactory beanFactory)
Create a new SimpleApplicationEventMulticaster for the given BeanFactory.org.springframework.context.expression中BeanFactory的使用
参数类型为BeanFactory的org.springframework.context.expression中的构造器 构造器 说明 BeanFactoryResolver(BeanFactory beanFactory)
Create a newBeanFactoryResolver
for the given factory.org.springframework.context.support中BeanFactory的使用
实现BeanFactory的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.返回BeanFactory的org.springframework.context.support中的方法 修饰符和类型 方法 说明 protected BeanFactory
AbstractApplicationContext. getInternalParentBeanFactory()
Return the internal bean factory of the parent context if it implements ConfigurableApplicationContext; else, return the parent context itself.BeanFactory
AbstractApplicationContext. getParentBeanFactory()
参数类型为BeanFactory的org.springframework.context.support中的方法 修饰符和类型 方法 说明 void
DefaultLifecycleProcessor. setBeanFactory(BeanFactory beanFactory)
org.springframework.context.weaving中BeanFactory的使用
参数类型为BeanFactory的org.springframework.context.weaving中的方法 修饰符和类型 方法 说明 void
LoadTimeWeaverAwareProcessor. setBeanFactory(BeanFactory beanFactory)
参数类型为BeanFactory的org.springframework.context.weaving中的构造器 构造器 说明 LoadTimeWeaverAwareProcessor(BeanFactory beanFactory)
Create a newLoadTimeWeaverAwareProcessor
.org.springframework.dao.annotation中BeanFactory的使用
参数类型为BeanFactory的org.springframework.dao.annotation中的方法 修饰符和类型 方法 说明 void
PersistenceExceptionTranslationPostProcessor. setBeanFactory(BeanFactory beanFactory)
org.springframework.dao.support中BeanFactory的使用
参数类型为BeanFactory的org.springframework.dao.support中的方法 修饰符和类型 方法 说明 void
PersistenceExceptionTranslationInterceptor. setBeanFactory(BeanFactory beanFactory)
org.springframework.jca.context中BeanFactory的使用
实现BeanFactory的org.springframework.jca.context中的类 修饰符和类型 类 说明 class
ResourceAdapterApplicationContext
ApplicationContext
implementation for a JCA ResourceAdapter.org.springframework.jdbc.datasource.lookup中BeanFactory的使用
参数类型为BeanFactory的org.springframework.jdbc.datasource.lookup中的方法 修饰符和类型 方法 说明 void
BeanFactoryDataSourceLookup. setBeanFactory(BeanFactory beanFactory)
参数类型为BeanFactory的org.springframework.jdbc.datasource.lookup中的构造器 构造器 说明 BeanFactoryDataSourceLookup(BeanFactory beanFactory)
Create a new instance of theBeanFactoryDataSourceLookup
class.org.springframework.jms.annotation中BeanFactory的使用
参数类型为BeanFactory的org.springframework.jms.annotation中的方法 修饰符和类型 方法 说明 void
JmsListenerAnnotationBeanPostProcessor. setBeanFactory(BeanFactory beanFactory)
Making aBeanFactory
available is optional; if not set,JmsListenerConfigurer
beans won't get autodetected and anendpoint registry
has to be explicitly configured.org.springframework.jms.config中BeanFactory的使用
参数类型为BeanFactory的org.springframework.jms.config中的方法 修饰符和类型 方法 说明 void
JmsListenerEndpointRegistrar. setBeanFactory(BeanFactory beanFactory)
ABeanFactory
only needs to be available in conjunction withJmsListenerEndpointRegistrar.setContainerFactoryBeanName(java.lang.String)
.void
MethodJmsListenerEndpoint. setBeanFactory(BeanFactory beanFactory)
Set theBeanFactory
to use to resolve expressions (may benull
).org.springframework.jms.support.destination中BeanFactory的使用
参数类型为BeanFactory的org.springframework.jms.support.destination中的方法 修饰符和类型 方法 说明 void
BeanFactoryDestinationResolver. setBeanFactory(BeanFactory beanFactory)
参数类型为BeanFactory的org.springframework.jms.support.destination中的构造器 构造器 说明 BeanFactoryDestinationResolver(BeanFactory beanFactory)
Create a new instance of theBeanFactoryDestinationResolver
class.org.springframework.jmx.export中BeanFactory的使用
参数类型为BeanFactory的org.springframework.jmx.export中的方法 修饰符和类型 方法 说明 void
MBeanExporter. setBeanFactory(BeanFactory beanFactory)
org.springframework.jmx.export.annotation中BeanFactory的使用
参数类型为BeanFactory的org.springframework.jmx.export.annotation中的方法 修饰符和类型 方法 说明 void
AnnotationJmxAttributeSource. setBeanFactory(BeanFactory beanFactory)
void
AnnotationMBeanExporter. setBeanFactory(BeanFactory beanFactory)
org.springframework.jndi中BeanFactory的使用
参数类型为BeanFactory的org.springframework.jndi中的方法 修饰符和类型 方法 说明 void
JndiObjectFactoryBean. setBeanFactory(BeanFactory beanFactory)
org.springframework.jndi.support中BeanFactory的使用
实现BeanFactory的org.springframework.jndi.support中的类 修饰符和类型 类 说明 class
SimpleJndiBeanFactory
Simple JNDI-based implementation of Spring'sBeanFactory
interface.org.springframework.messaging.core中BeanFactory的使用
参数类型为BeanFactory的org.springframework.messaging.core中的方法 修饰符和类型 方法 说明 void
BeanFactoryMessageChannelDestinationResolver. setBeanFactory(BeanFactory beanFactory)
void
GenericMessagingTemplate. setBeanFactory(BeanFactory beanFactory)
参数类型为BeanFactory的org.springframework.messaging.core中的构造器 构造器 说明 BeanFactoryMessageChannelDestinationResolver(BeanFactory beanFactory)
A constructor that accepts aBeanFactory
useful if instantiating this resolver manually rather than having it defined as a Spring-managed bean.org.springframework.messaging.handler中BeanFactory的使用
参数类型为BeanFactory的org.springframework.messaging.handler中的构造器 构造器 说明 HandlerMethod(String beanName, BeanFactory beanFactory, Method method)
Create an instance from a bean name, a method, and aBeanFactory
.org.springframework.messaging.handler.annotation.support中BeanFactory的使用
参数类型为BeanFactory的org.springframework.messaging.handler.annotation.support中的方法 修饰符和类型 方法 说明 void
DefaultMessageHandlerMethodFactory. setBeanFactory(BeanFactory beanFactory)
ABeanFactory
only needs to be available for placeholder resolution in handler method arguments; it's optional otherwise.org.springframework.orm.hibernate5中BeanFactory的使用
参数类型为BeanFactory的org.springframework.orm.hibernate5中的方法 修饰符和类型 方法 说明 void
HibernateTransactionManager. setBeanFactory(BeanFactory beanFactory)
The bean factory just needs to be known for resolving entity interceptor bean names.void
LocalSessionFactoryBean. setBeanFactory(BeanFactory beanFactory)
Accept the containingBeanFactory
, registering corresponding HibernateBeanContainer
integration for it if possible.org.springframework.orm.jpa中BeanFactory的使用
参数类型为BeanFactory的org.springframework.orm.jpa中的方法 修饰符和类型 方法 说明 void
AbstractEntityManagerFactoryBean. setBeanFactory(BeanFactory beanFactory)
void
EntityManagerFactoryAccessor. setBeanFactory(BeanFactory beanFactory)
Retrieves an EntityManagerFactory by persistence unit name, if none set explicitly.void
JpaTransactionManager. setBeanFactory(BeanFactory beanFactory)
Retrieves an EntityManagerFactory by persistence unit name, if none set explicitly.org.springframework.orm.jpa.support中BeanFactory的使用
参数类型为BeanFactory的org.springframework.orm.jpa.support中的方法 修饰符和类型 方法 说明 void
PersistenceAnnotationBeanPostProcessor. setBeanFactory(BeanFactory beanFactory)
org.springframework.remoting.jaxws中BeanFactory的使用
参数类型为BeanFactory的org.springframework.remoting.jaxws中的方法 修饰符和类型 方法 说明 void
AbstractJaxWsServiceExporter. setBeanFactory(BeanFactory beanFactory)
Obtains all web service beans and publishes them as JAX-WS endpoints.org.springframework.scheduling.annotation中BeanFactory的使用
参数类型为BeanFactory的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 void
AsyncAnnotationAdvisor. setBeanFactory(BeanFactory beanFactory)
Set theBeanFactory
to be used when looking up executors by qualifier.void
AsyncAnnotationBeanPostProcessor. setBeanFactory(BeanFactory beanFactory)
void
ScheduledAnnotationBeanPostProcessor. setBeanFactory(BeanFactory beanFactory)
Making aBeanFactory
available is optional; if not set,SchedulingConfigurer
beans won't get autodetected and ascheduler
has to be explicitly configured.org.springframework.scheduling.quartz中BeanFactory的使用
参数类型为BeanFactory的org.springframework.scheduling.quartz中的方法 修饰符和类型 方法 说明 void
MethodInvokingJobDetailFactoryBean. setBeanFactory(BeanFactory beanFactory)
void
SchedulerAccessorBean. setBeanFactory(BeanFactory beanFactory)
org.springframework.scripting.groovy中BeanFactory的使用
参数类型为BeanFactory的org.springframework.scripting.groovy中的方法 修饰符和类型 方法 说明 void
GroovyScriptFactory. setBeanFactory(BeanFactory beanFactory)
org.springframework.scripting.support中BeanFactory的使用
参数类型为BeanFactory的org.springframework.scripting.support中的方法 修饰符和类型 方法 说明 protected Object
RefreshableScriptTargetSource. obtainFreshBean(BeanFactory beanFactory, String beanName)
Obtain a fresh target object, retrieving a FactoryBean if necessary.void
ScriptFactoryPostProcessor. setBeanFactory(BeanFactory beanFactory)
参数类型为BeanFactory的org.springframework.scripting.support中的构造器 构造器 说明 RefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean)
Create a new RefreshableScriptTargetSource.org.springframework.transaction.interceptor中BeanFactory的使用
返回BeanFactory的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 protected BeanFactory
TransactionAspectSupport. getBeanFactory()
Return the BeanFactory to use for retrievingTransactionManager
beans.参数类型为BeanFactory的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 void
TransactionAspectSupport. setBeanFactory(BeanFactory beanFactory)
Set the BeanFactory to use for retrievingTransactionManager
beans.void
TransactionProxyFactoryBean. setBeanFactory(BeanFactory beanFactory)
This callback is optional: If running in a BeanFactory and no transaction manager has been set explicitly, a single matching bean of typePlatformTransactionManager
will be fetched from the BeanFactory.org.springframework.web.context中BeanFactory的使用
org.springframework.web.context中BeanFactory的子接口 修饰符和类型 接口 说明 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.request.async中BeanFactory的使用
参数类型为BeanFactory的org.springframework.web.context.request.async中的方法 修饰符和类型 方法 说明 void
WebAsyncTask. setBeanFactory(BeanFactory beanFactory)
ABeanFactory
to use for resolving an executor name.org.springframework.web.context.support中BeanFactory的使用
实现BeanFactory的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中BeanFactory的使用
返回BeanFactory的org.springframework.web.jsf中的方法 修饰符和类型 方法 说明 protected BeanFactory
DelegatingNavigationHandlerProxy. getBeanFactory(FacesContext facesContext)
Retrieve the Spring BeanFactory to delegate bean name resolution to.org.springframework.web.method中BeanFactory的使用
参数类型为BeanFactory的org.springframework.web.method中的构造器 构造器 说明 ControllerAdviceBean(String beanName, BeanFactory beanFactory)
Create aControllerAdviceBean
using the given bean name andBeanFactory
.ControllerAdviceBean(String beanName, BeanFactory beanFactory, ControllerAdvice controllerAdvice)
Create aControllerAdviceBean
using the given bean name,BeanFactory
, and@ControllerAdvice
annotation.HandlerMethod(String beanName, BeanFactory beanFactory, Method method)
Create an instance from a bean name, a method, and aBeanFactory
.org.springframework.web.servlet.mvc.method.annotation中BeanFactory的使用
参数类型为BeanFactory的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 void
RequestMappingHandlerAdapter. setBeanFactory(BeanFactory beanFactory)
AConfigurableBeanFactory
is expected for resolving expressions in method argument default values.参数类型为BeanFactory的org.springframework.web.servlet.mvc.method.annotation中的构造器 构造器 说明 AsyncTaskMethodReturnValueHandler(BeanFactory beanFactory)
org.springframework.web.servlet.view中BeanFactory的使用
返回BeanFactory的org.springframework.web.servlet.view中的方法 修饰符和类型 方法 说明 protected BeanFactory
ResourceBundleViewResolver. initFactory(Locale locale)
protected BeanFactory
XmlViewResolver. initFactory()
Initialize the view bean factory from the XML file.org.springframework.web.socket.client.standard中BeanFactory的使用
参数类型为BeanFactory的org.springframework.web.socket.client.standard中的方法 修饰符和类型 方法 说明 void
AnnotatedEndpointConnectionManager. setBeanFactory(BeanFactory beanFactory)
void
EndpointConnectionManager. setBeanFactory(BeanFactory beanFactory)
org.springframework.web.socket.handler中BeanFactory的使用
参数类型为BeanFactory的org.springframework.web.socket.handler中的方法 修饰符和类型 方法 说明 void
BeanCreatingHandlerProvider. setBeanFactory(BeanFactory beanFactory)
void
PerConnectionWebSocketHandler. setBeanFactory(BeanFactory beanFactory)
org.springframework.web.socket.server.standard中BeanFactory的使用
参数类型为BeanFactory的org.springframework.web.socket.server.standard中的方法 修饰符和类型 方法 说明 void
ServerEndpointRegistration. setBeanFactory(BeanFactory beanFactory)