Uses of Interface
org.springframework.beans.factory.BeanFactory
Package
Description
AspectJ integration package.
Classes enabling AspectJ 5 @Annotated classes to be used in Spring AOP.
Support package for declarative AOP configuration,
with XML schema being the primary configuration format.
Package containing Spring's basic AOP infrastructure, compliant with the
AOP Alliance interfaces.
Bean post-processors for use in ApplicationContexts to simplify AOP usage
by automatically creating AOP proxies without the need to use a ProxyFactoryBean.
Provides miscellaneous interceptor implementations.
Support for AOP-based scoping of target objects, with configurable backend.
Convenience classes for using Spring's AOP API.
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
Support package for annotation-driven bean configuration.
SPI interfaces and configuration-related convenience classes for bean factories.
Classes supporting the
org.springframework.beans.factory
package.Mechanism to determine bean wiring metadata from a bean instance.
AOP-based solution for declarative caching demarcation.
AOP-based solution for declarative caching demarcation using JSR-107 annotations.
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.
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Support classes for application events, like standard context events.
Expression parsing support within a Spring application context.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Load-time weaving support for a Spring application context, building on Spring's
LoadTimeWeaver
abstraction.Annotation support for DAOs.
Support classes for DAO implementations,
providing miscellaneous utility methods.
Provides a strategy for looking up JDBC DataSources by name.
Annotations and support classes for declarative JMS listener endpoints.
Support package for declarative messaging configuration,
with Java configuration and XML schema support.
Support classes for Spring's JMS framework.
This package provides declarative creation and registration of
Spring-managed beans as JMX MBeans.
Annotations for MBean exposure.
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.
Support classes for JNDI usage,
including a JNDI-based BeanFactory implementation.
Defines interfaces and implementation classes for messaging templates.
Basic abstractions for working with message handler methods.
Support classes for working with annotated message-handling methods.
Package providing integration of
Hibernate 5.x
with Spring concepts.
Package providing integration of JPA (Java Persistence API) with Spring concepts.
Classes supporting the
org.springframework.orm.jpa
package.Provides a strategy for looking up R2DBC ConnectionFactories by name.
Annotation support for asynchronous method execution.
Support classes for the open source scheduler
Quartz,
allowing to set up Quartz Schedulers, JobDetails and
Triggers as beans in a Spring context.
Package providing integration of
Groovy
into Spring's scripting infrastructure.
Support classes for Spring's scripting package.
AOP-based solution for declarative transaction demarcation.
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
Support for asynchronous request processing.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.Support classes for integrating a JSF web layer with a Spring service layer
which is hosted in a Spring root WebApplicationContext.
Common infrastructure for handler method processing, as used by
Spring MVC's
org.springframework.web.servlet.mvc.method
package.MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
Client-side classes for use with standard Java WebSocket endpoints.
Convenient
WebSocketHandler
implementations and decorators.Server-side classes for use with standard JSR-356 WebSocket endpoints.
-
Uses of BeanFactory in org.springframework.aop.aspectj
Modifier and TypeMethodDescriptionvoid
AspectJExpressionPointcut.setBeanFactory
(BeanFactory beanFactory) void
AspectJExpressionPointcutAdvisor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.aop.aspectj.annotation
ModifierConstructorDescriptionBeanFactoryAspectInstanceFactory
(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. -
Uses of BeanFactory in org.springframework.aop.config
Modifier and TypeMethodDescriptionvoid
MethodLocatingFactoryBean.setBeanFactory
(BeanFactory beanFactory) void
SimpleBeanFactoryAwareAspectInstanceFactory.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.aop.framework
-
Uses of BeanFactory in org.springframework.aop.framework.autoproxy
Modifier and TypeMethodDescriptionprotected BeanFactory
AbstractAutoProxyCreator.getBeanFactory()
Return the owningBeanFactory
.Modifier and TypeMethodDescriptionvoid
AbstractAdvisorAutoProxyCreator.setBeanFactory
(BeanFactory beanFactory) void
AbstractAutoProxyCreator.setBeanFactory
(BeanFactory beanFactory) void
AbstractBeanFactoryAwareAdvisingPostProcessor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.aop.framework.autoproxy.target
Modifier and TypeMethodDescriptionprotected final BeanFactory
AbstractBeanFactoryBasedTargetSourceCreator.getBeanFactory()
Return the BeanFactory that this TargetSourceCreators runs in.Modifier and TypeMethodDescriptionfinal void
AbstractBeanFactoryBasedTargetSourceCreator.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.aop.interceptor
Modifier and TypeMethodDescriptionprotected 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. -
Uses of BeanFactory in org.springframework.aop.scope
Modifier and TypeMethodDescriptionvoid
ScopedProxyFactoryBean.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.aop.support
Modifier and TypeMethodDescriptionvoid
AbstractBeanFactoryPointcutAdvisor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.aop.target
Modifier and TypeMethodDescriptionAbstractBeanFactoryBasedTargetSource.getBeanFactory()
Return the owning BeanFactory.Modifier and TypeMethodDescriptionvoid
AbstractBeanFactoryBasedTargetSource.setBeanFactory
(BeanFactory beanFactory) Set the owning BeanFactory.final void
AbstractPoolingTargetSource.setBeanFactory
(BeanFactory beanFactory) void
AbstractPrototypeBasedTargetSource.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.aop.target.dynamic
Modifier and TypeMethodDescriptionprotected 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.ModifierConstructorDescriptionBeanFactoryRefreshableTargetSource
(BeanFactory beanFactory, String beanName) Create a new BeanFactoryRefreshableTargetSource for the given bean factory and bean name. -
Uses of BeanFactory in org.springframework.beans.factory
Modifier and TypeInterfaceDescriptioninterface
Sub-interface implemented by bean factories that can be part of a hierarchy.interface
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.Modifier and TypeMethodDescriptionHierarchicalBeanFactory.getParentBeanFactory()
Return the parent bean factory, ornull
if there is none.Modifier and TypeMethodDescriptionvoid
BeanFactoryAware.setBeanFactory
(BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance. -
Uses of BeanFactory in org.springframework.beans.factory.annotation
Modifier and TypeMethodDescriptionstatic 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.void
AutowiredAnnotationBeanPostProcessor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.beans.factory.config
Modifier and TypeInterfaceDescriptioninterface
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
Configuration interface to be implemented by most bean factories.interface
Configuration interface to be implemented by most listable bean factories.Modifier and TypeMethodDescriptionprotected BeanFactory
AbstractFactoryBean.getBeanFactory()
Return the BeanFactory that this bean runs in.Modifier and TypeMethodDescriptionDependencyDescriptor.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.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. -
Uses of BeanFactory in org.springframework.beans.factory.support
Modifier and TypeClassDescriptionclass
Abstract bean factory superclass that implements default bean creation, with the full capabilities specified by theRootBeanDefinition
class.class
Abstract base class forBeanFactory
implementations, providing the full capabilities of theConfigurableBeanFactory
SPI.class
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.Modifier and TypeMethodDescriptionprotected final BeanFactory
GenericTypeAwareAutowireCandidateResolver.getBeanFactory()
AbstractBeanFactory.getParentBeanFactory()
Modifier and TypeMethodDescriptionClass<?>
CglibSubclassingInstantiationStrategy.getActualBeanClass
(RootBeanDefinition bd, String beanName, BeanFactory owner) default Class<?>
InstantiationStrategy.getActualBeanClass
(RootBeanDefinition bd, String beanName, BeanFactory owner) Determine the actual class for the given bean definition, as instantiated at runtime.InstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner) Return an instance of the bean with the given name in this factory.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.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.SimpleInstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner) SimpleInstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args) 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) ModifierConstructorDescriptionAbstractAutowireCapableBeanFactory
(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. -
Uses of BeanFactory in org.springframework.beans.factory.wiring
Modifier and TypeMethodDescriptionvoid
BeanConfigurerSupport.setBeanFactory
(BeanFactory beanFactory) Set theBeanFactory
in which this aspect must configure beans. -
Uses of BeanFactory in org.springframework.cache.interceptor
Modifier and TypeMethodDescriptionvoid
CacheAspectSupport.setBeanFactory
(BeanFactory beanFactory) Set the containingBeanFactory
forCacheManager
and other service lookups.void
CacheProxyFactoryBean.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.cache.jcache.interceptor
Modifier and TypeMethodDescriptionvoid
DefaultJCacheOperationSource.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.context
Modifier and TypeInterfaceDescriptioninterface
Central interface to provide configuration for an application.interface
SPI interface to be implemented by most if not all application contexts. -
Uses of BeanFactory in org.springframework.context.annotation
Modifier and TypeClassDescriptionclass
Standalone application context, accepting component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
types and JSR-330 compliant classes usingjakarta.inject
annotations.Modifier and TypeMethodDescriptionprotected 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
/@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
/@EJB
annotated fields and setter methods, forname
attributes and default names. -
Uses of BeanFactory in org.springframework.context.event
Modifier and TypeMethodDescriptionvoid
AbstractApplicationEventMulticaster.setBeanFactory
(BeanFactory beanFactory) ModifierConstructorDescriptionSimpleApplicationEventMulticaster
(BeanFactory beanFactory) Create a new SimpleApplicationEventMulticaster for the given BeanFactory. -
Uses of BeanFactory in org.springframework.context.expression
ModifierConstructorDescriptionBeanFactoryResolver
(BeanFactory beanFactory) Create a newBeanFactoryResolver
for the given factory. -
Uses of BeanFactory in org.springframework.context.support
Modifier and TypeClassDescriptionclass
Abstract implementation of theApplicationContext
interface.class
Base class forApplicationContext
implementations which are supposed to support multiple calls toAbstractApplicationContext.refresh()
, creating a new internal bean factory instance every time.class
AbstractRefreshableApplicationContext
subclass that adds common handling of specified config locations.class
Convenient base class forApplicationContext
implementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader
.class
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
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
Generic ApplicationContext implementation that holds a single internalDefaultListableBeanFactory
instance and does not assume a specific bean definition format.class
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
Convenient application context with built-in XML support.class
ApplicationContext
implementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.Modifier and TypeMethodDescriptionprotected BeanFactory
AbstractApplicationContext.getInternalParentBeanFactory()
Return the internal bean factory of the parent context if it implements ConfigurableApplicationContext; else, return the parent context itself.AbstractApplicationContext.getParentBeanFactory()
Modifier and TypeMethodDescriptionvoid
DefaultLifecycleProcessor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.context.weaving
Modifier and TypeMethodDescriptionvoid
LoadTimeWeaverAwareProcessor.setBeanFactory
(BeanFactory beanFactory) ModifierConstructorDescriptionLoadTimeWeaverAwareProcessor
(BeanFactory beanFactory) Create a newLoadTimeWeaverAwareProcessor
. -
Uses of BeanFactory in org.springframework.dao.annotation
Modifier and TypeMethodDescriptionvoid
PersistenceExceptionTranslationPostProcessor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.dao.support
Modifier and TypeMethodDescriptionvoid
PersistenceExceptionTranslationInterceptor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.jdbc.datasource.lookup
Modifier and TypeMethodDescriptionvoid
BeanFactoryDataSourceLookup.setBeanFactory
(BeanFactory beanFactory) ModifierConstructorDescriptionBeanFactoryDataSourceLookup
(BeanFactory beanFactory) Create a new instance of theBeanFactoryDataSourceLookup
class. -
Uses of BeanFactory in org.springframework.jms.annotation
Modifier and TypeMethodDescriptionvoid
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. -
Uses of BeanFactory in org.springframework.jms.config
Modifier and TypeMethodDescriptionvoid
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
). -
Uses of BeanFactory in org.springframework.jms.support.destination
Modifier and TypeMethodDescriptionvoid
BeanFactoryDestinationResolver.setBeanFactory
(BeanFactory beanFactory) ModifierConstructorDescriptionBeanFactoryDestinationResolver
(BeanFactory beanFactory) Create a new instance of theBeanFactoryDestinationResolver
class. -
Uses of BeanFactory in org.springframework.jmx.export
-
Uses of BeanFactory in org.springframework.jmx.export.annotation
Modifier and TypeMethodDescriptionvoid
AnnotationJmxAttributeSource.setBeanFactory
(BeanFactory beanFactory) void
AnnotationMBeanExporter.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.jndi
Modifier and TypeMethodDescriptionvoid
JndiObjectFactoryBean.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.jndi.support
Modifier and TypeClassDescriptionclass
Simple JNDI-based implementation of Spring'sBeanFactory
interface. -
Uses of BeanFactory in org.springframework.messaging.core
Modifier and TypeMethodDescriptionvoid
BeanFactoryMessageChannelDestinationResolver.setBeanFactory
(BeanFactory beanFactory) void
GenericMessagingTemplate.setBeanFactory
(BeanFactory beanFactory) ModifierConstructorDescriptionBeanFactoryMessageChannelDestinationResolver
(BeanFactory beanFactory) A constructor that accepts aBeanFactory
useful if instantiating this resolver manually rather than having it defined as a Spring-managed bean. -
Uses of BeanFactory in org.springframework.messaging.handler
ModifierConstructorDescriptionHandlerMethod
(String beanName, BeanFactory beanFactory, Method method) Create an instance from a bean name, a method, and aBeanFactory
. -
Uses of BeanFactory in org.springframework.messaging.handler.annotation.support
Modifier and TypeMethodDescriptionvoid
DefaultMessageHandlerMethodFactory.setBeanFactory
(BeanFactory beanFactory) ABeanFactory
only needs to be available for placeholder resolution in handler method arguments; it's optional otherwise. -
Uses of BeanFactory in org.springframework.orm.hibernate5
Modifier and TypeMethodDescriptionvoid
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. -
Uses of BeanFactory in org.springframework.orm.jpa
Modifier and TypeMethodDescriptionvoid
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. -
Uses of BeanFactory in org.springframework.orm.jpa.support
Modifier and TypeMethodDescriptionvoid
PersistenceAnnotationBeanPostProcessor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.r2dbc.connection.lookup
Modifier and TypeMethodDescriptionvoid
BeanFactoryConnectionFactoryLookup.setBeanFactory
(BeanFactory beanFactory) ModifierConstructorDescriptionBeanFactoryConnectionFactoryLookup
(BeanFactory beanFactory) Create a new instance of theBeanFactoryConnectionFactoryLookup
class. -
Uses of BeanFactory in org.springframework.scheduling.annotation
Modifier and TypeMethodDescriptionvoid
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. -
Uses of BeanFactory in org.springframework.scheduling.quartz
Modifier and TypeMethodDescriptionvoid
MethodInvokingJobDetailFactoryBean.setBeanFactory
(BeanFactory beanFactory) void
SchedulerAccessorBean.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.scripting.groovy
Modifier and TypeMethodDescriptionvoid
GroovyScriptFactory.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.scripting.support
Modifier and TypeMethodDescriptionprotected Object
RefreshableScriptTargetSource.obtainFreshBean
(BeanFactory beanFactory, String beanName) Obtain a fresh target object, retrieving a FactoryBean if necessary.void
ScriptFactoryPostProcessor.setBeanFactory
(BeanFactory beanFactory) ModifierConstructorDescriptionRefreshableScriptTargetSource
(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) Create a new RefreshableScriptTargetSource. -
Uses of BeanFactory in org.springframework.transaction.interceptor
Modifier and TypeMethodDescriptionprotected final BeanFactory
TransactionAspectSupport.getBeanFactory()
Return the BeanFactory to use for retrievingTransactionManager
beans.Modifier and TypeMethodDescriptionvoid
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. -
Uses of BeanFactory in org.springframework.web.context
Modifier and TypeInterfaceDescriptioninterface
Interface to be implemented by configurable web application contexts.interface
Interface to provide configuration for a web application. -
Uses of BeanFactory in org.springframework.web.context.request.async
Modifier and TypeMethodDescriptionvoid
WebAsyncTask.setBeanFactory
(BeanFactory beanFactory) ABeanFactory
to use for resolving an executor name. -
Uses of BeanFactory in org.springframework.web.context.support
Modifier and TypeClassDescriptionclass
AbstractRefreshableApplicationContext
subclass which implements theConfigurableWebApplicationContext
interface for web environments.class
WebApplicationContext
implementation which accepts component classes as input — in particular@Configuration
classes, but also plain@Component
classes as well as JSR-330 compliant classes usingjakarta.inject
annotations.class
Subclass ofGenericApplicationContext
, suitable for web environments.class
WebApplicationContext
implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader
.class
StaticWebApplicationContext
implementation for testing.class
WebApplicationContext
implementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
. -
Uses of BeanFactory in org.springframework.web.jsf
Modifier and TypeMethodDescriptionprotected BeanFactory
DelegatingNavigationHandlerProxy.getBeanFactory
(FacesContext facesContext) Retrieve the Spring BeanFactory to delegate bean name resolution to. -
Uses of BeanFactory in org.springframework.web.method
ModifierConstructorDescriptionControllerAdviceBean
(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
.HandlerMethod
(String beanName, BeanFactory beanFactory, MessageSource messageSource, Method method) Variant ofHandlerMethod(String, BeanFactory, Method)
that also accepts aMessageSource
. -
Uses of BeanFactory in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionvoid
RequestMappingHandlerAdapter.setBeanFactory
(BeanFactory beanFactory) AConfigurableBeanFactory
is expected for resolving expressions in method argument default values. -
Uses of BeanFactory in org.springframework.web.servlet.view
Modifier and TypeMethodDescriptionprotected BeanFactory
ResourceBundleViewResolver.initFactory
(Locale locale) Deprecated.protected BeanFactory
XmlViewResolver.initFactory()
Deprecated.Initialize the view bean factory from the XML file. -
Uses of BeanFactory in org.springframework.web.socket.client.standard
Modifier and TypeMethodDescriptionvoid
AnnotatedEndpointConnectionManager.setBeanFactory
(BeanFactory beanFactory) void
EndpointConnectionManager.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.web.socket.handler
Modifier and TypeMethodDescriptionvoid
BeanCreatingHandlerProvider.setBeanFactory
(BeanFactory beanFactory) void
PerConnectionWebSocketHandler.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.web.socket.server.standard
Modifier and TypeMethodDescriptionvoid
ServerEndpointRegistration.setBeanFactory
(BeanFactory beanFactory)