Uses of Interface
org.springframework.beans.factory.DisposableBean
Package
Description
SPI interfaces and configuration-related convenience classes for bean factories.
Support package for the Java
ServiceLoader
facility.Classes supporting the
org.springframework.beans.factory
package.Mechanism to determine bean wiring metadata from a bean instance.
Implementation package for JSR-107 (javax.cache aka "JCache") based caches.
Load-time weaving support for a Spring application context, building on Spring's
LoadTimeWeaver
abstraction.Contains an abstraction over client-side HTTP.
Abstractions for reactive HTTP client support including
ClientHttpRequest
and
ClientHttpResponse
as well as a
ClientHttpConnector
.This package provides a facility for generic JCA message endpoint management.
Provides generic support classes for JCA usage within Spring,
mainly for local setup of a JCA ResourceAdapter and/or ConnectionFactory.
Defines the Spring JDBC configuration namespace.
Provides a utility class for easy DataSource access,
a PlatformTransactionManager for a single DataSource,
and various simple DataSource implementations.
Provides extensible support for creating embedded database instances.
Provides extensible support for initializing databases through scripts.
Support package for declarative messaging configuration,
with Java configuration and XML schema support.
Provides a PlatformTransactionManager implementation for a single
JMS ConnectionFactory, and a SingleConnectionFactory adapter.
This package contains the base message listener container facility.
This package provides JCA-based endpoint management for JMS message listeners.
Provides support for accessing remote MBean resources.
This package provides declarative creation and registration of
Spring-managed beans as JMX MBeans.
Annotations for MBean exposure.
Contains support classes for connecting to local and remote
MBeanServer
s
and for exposing an MBeanServer
to remote clients.Package providing integration of
Hibernate 5.x
with Spring concepts.
Classes supporting the
org.springframework.orm.hibernate5
package.Package providing integration of JPA (Java Persistence API) with Spring concepts.
Classes supporting the
org.springframework.orm.jpa
package.Provides a utility class for easy ConnectionFactory access,
a ReactiveTransactionManager for a single ConnectionFactory,
and various simple ConnectionFactory implementations.
Provides extensible support for initializing databases through scripts.
Annotation support for asynchronous method execution.
Scheduling convenience classes for the
java.util.concurrent
and jakarta.enterprise.concurrent
packages, allowing to set up a
ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring
context.Support package for declarative scheduling configuration,
with XML schema being the primary configuration format.
Support classes for the open source scheduler
Quartz,
allowing to set up Quartz Schedulers, JobDetails and
Triggers as beans in a Spring context.
Support classes for Spring's scripting package.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.Provides generic filter base classes allowing for bean-style configuration.
Support classes for the multipart resolution framework.
Instrumentation for
observing
web applications.Standard controller implementations for the Servlet MVC framework that comes with
Spring.
Support classes for serving static resources.
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
-
Uses of DisposableBean in org.springframework.aop.framework.autoproxy.target
Modifier and TypeClassDescriptionclass
Convenient superclass forTargetSourceCreator
implementations that require creating multiple instances of a prototype bean.class
TargetSourceCreator
that enforces aLazyInitTargetSource
for each bean that is defined as "lazy-init".class
Convenient TargetSourceCreator using bean name prefixes to create one of three well-known TargetSource types: : CommonsPool2TargetSource % ThreadLocalTargetSource ! PrototypeTargetSource -
Uses of DisposableBean in org.springframework.aop.target
Modifier and TypeClassDescriptionclass
Abstract base class for poolingTargetSource
implementations which maintain a pool of target instances, acquiring and releasing a target object from the pool for each method invocation.class
TargetSource
implementation that holds objects in a configurable Apache Commons2 Pool.class
Alternative to an object pool. -
Uses of DisposableBean in org.springframework.beans.factory.config
Modifier and TypeClassDescriptionclass
Simple template superclass forFactoryBean
implementations that creates a singleton or a prototype object, depending on a flag.class
Simple factory for shared List instances.class
Simple factory for shared Map instances.class
AFactoryBean
implementation that returns a value which is anObjectFactory
that in turn returns a bean sourced from aBeanFactory
.class
AFactoryBean
implementation that returns a value which is a JSR-330Provider
that in turn returns a bean sourced from aBeanFactory
.class
Simple factory for shared Set instances. -
Uses of DisposableBean in org.springframework.beans.factory.serviceloader
Modifier and TypeClassDescriptionclass
Abstract base class for FactoryBeans operating on the JDK 1.6ServiceLoader
facility.class
FactoryBean
that exposes the 'primary' service for the configured service class, obtained through the JDK 1.6ServiceLoader
facility.class
FactoryBean
that exposes all services for the configured service class, represented as a List of service objects, obtained through the JDK 1.6ServiceLoader
facility.class
FactoryBean
that exposes the JDK 1.6ServiceLoader
for the configured service class. -
Uses of DisposableBean in org.springframework.beans.factory.support
Modifier and TypeMethodDescriptionprotected void
DefaultSingletonBeanRegistry.destroyBean
(String beanName, DisposableBean bean) Destroy the given bean.void
DefaultSingletonBeanRegistry.registerDisposableBean
(String beanName, DisposableBean bean) Add the given bean to the list of disposable beans in this registry. -
Uses of DisposableBean in org.springframework.beans.factory.wiring
Modifier and TypeClassDescriptionclass
Convenient base class for bean configurers that can perform Dependency Injection on objects (however they may be created). -
Uses of DisposableBean in org.springframework.cache.jcache
Modifier and TypeClassDescriptionclass
FactoryBean
for a JCachejavax.cache.CacheManager
, obtaining a pre-definedCacheManager
by name through the standard JCachejavax.cache.Caching
class. -
Uses of DisposableBean in org.springframework.context.weaving
Modifier and TypeClassDescriptionclass
DefaultLoadTimeWeaver
bean for use in an application context, decorating an automatically detected internalLoadTimeWeaver
. -
Uses of DisposableBean in org.springframework.http.client
Modifier and TypeClassDescriptionclass
ClientHttpRequestFactory
implementation that uses Apache HttpComponents HttpClient to create requests.class
ClientHttpRequestFactory
implementation that uses OkHttp 3.x to create requests. -
Uses of DisposableBean in org.springframework.http.client.reactive
Modifier and TypeClassDescriptionclass
Factory to manage JDK HttpClient resources such as a sharedExecutor
within the lifecycle of a SpringApplicationContext
.class
Factory to manage Jetty resources, i.e.class
Factory to manage Reactor Netty resources, i.e.class
Factory to manage Reactor Netty resources, i.e. -
Uses of DisposableBean in org.springframework.jca.endpoint
Modifier and TypeClassDescriptionclass
Generic bean that manages JCA 1.7 message endpoints within a Spring application context, activating and deactivating the endpoint as part of the application context's lifecycle. -
Uses of DisposableBean in org.springframework.jca.support
Modifier and TypeClassDescriptionclass
FactoryBean
that bootstraps the specified JCA 1.7ResourceAdapter
, starting it with a localBootstrapContext
and exposing it for bean references. -
Uses of DisposableBean in org.springframework.jdbc.config
Modifier and TypeClassDescriptionclass
FactoryBean
implementation that takes a list of location Strings and creates a sorted array ofResource
instances. -
Uses of DisposableBean in org.springframework.jdbc.datasource
Modifier and TypeClassDescriptionclass
Implementation ofSmartDataSource
that wraps a single JDBC Connection which is not closed after use. -
Uses of DisposableBean in org.springframework.jdbc.datasource.embedded
Modifier and TypeClassDescriptionclass
A subclass ofEmbeddedDatabaseFactory
that implementsFactoryBean
for registration as a Spring bean. -
Uses of DisposableBean in org.springframework.jdbc.datasource.init
Modifier and TypeClassDescriptionclass
-
Uses of DisposableBean in org.springframework.jms.config
Modifier and TypeClassDescriptionclass
Creates the necessaryMessageListenerContainer
instances for the registered endpoints. -
Uses of DisposableBean in org.springframework.jms.connection
Modifier and TypeClassDescriptionclass
SingleConnectionFactory
subclass that addsSession
caching as well asMessageProducer
andMessageConsumer
caching.class
A JMS ConnectionFactory adapter that returns the same Connection from allSingleConnectionFactory.createConnection()
calls, and ignores calls toConnection.close()
. -
Uses of DisposableBean in org.springframework.jms.listener
Modifier and TypeClassDescriptionclass
Common base class for all containers which need to implement listening based on a JMS Connection (either shared or freshly obtained for each attempt).class
Abstract base class for Spring message listener container implementations.class
Base class for listener container implementations which are based on polling.class
Message listener container variant that uses plain JMS client APIs, specifically a loop ofMessageConsumer.receive()
calls that also allow for transactional reception of messages (registering them with XA transactions).class
Message listener container that uses the plain JMS client API'sMessageConsumer.setMessageListener()
method to create concurrent MessageConsumers for the specified listeners. -
Uses of DisposableBean in org.springframework.jms.listener.endpoint
Modifier and TypeClassDescriptionclass
Extension of the generic JCA 1.5GenericMessageEndpointManager
, adding JMS-specific support for ActivationSpec configuration. -
Uses of DisposableBean in org.springframework.jmx.access
Modifier and TypeClassDescriptionclass
MethodInterceptor
that routes calls to an MBean running on the suppliedMBeanServerConnection
.class
Creates a proxy to a managed resource running either locally or remotely.class
Registrar object that associates a specificNotificationListener
with one or more MBeans in anMBeanServer
(typically via aMBeanServerConnection
). -
Uses of DisposableBean in org.springframework.jmx.export
Modifier and TypeClassDescriptionclass
JMX exporter that allows for exposing any Spring-managed bean to a JMXMBeanServer
, without the need to define any JMX-specific information in the bean classes. -
Uses of DisposableBean in org.springframework.jmx.export.annotation
Modifier and TypeClassDescriptionclass
Convenient subclass of Spring's standardMBeanExporter
, activating annotation usage for JMX exposure of Spring beans:ManagedResource
,ManagedAttribute
,ManagedOperation
, etc. -
Uses of DisposableBean in org.springframework.jmx.support
Modifier and TypeClassDescriptionclass
FactoryBean
that creates a JSR-160JMXConnectorServer
, optionally registers it with theMBeanServer
, and then starts it.class
FactoryBean
that creates a JMX 1.2MBeanServerConnection
to a remoteMBeanServer
exposed via aJMXServerConnector
.class
FactoryBean
that obtains aMBeanServer
reference through the standard JMX 1.2MBeanServerFactory
API. -
Uses of DisposableBean in org.springframework.orm.hibernate5
-
Uses of DisposableBean in org.springframework.orm.hibernate5.support
Modifier and TypeClassDescriptionclass
Servlet Filter that binds a Hibernate Session to the thread for the entire processing of the request. -
Uses of DisposableBean in org.springframework.orm.jpa
Modifier and TypeClassDescriptionclass
AbstractFactoryBean
that creates a local JPAEntityManagerFactory
instance within a Spring application context.class
FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard container bootstrap contract.class
FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard standalone bootstrap contract. -
Uses of DisposableBean in org.springframework.orm.jpa.support
Modifier and TypeClassDescriptionclass
Servlet Filter that binds a JPA EntityManager to the thread for the entire processing of the request. -
Uses of DisposableBean in org.springframework.r2dbc.connection
Modifier and TypeClassDescriptionclass
Implementation ofDelegatingConnectionFactory
that wraps a single R2DBCConnection
which is not closed after use. -
Uses of DisposableBean in org.springframework.r2dbc.connection.init
Modifier and TypeClassDescriptionclass
-
Uses of DisposableBean in org.springframework.scheduling.annotation
Modifier and TypeClassDescriptionclass
Bean post-processor that registers methods annotated with@Scheduled
to be invoked by aTaskScheduler
according to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation. -
Uses of DisposableBean in org.springframework.scheduling.concurrent
Modifier and TypeClassDescriptionclass
Base class for setting up aExecutorService
(typically aThreadPoolExecutor
orScheduledThreadPoolExecutor
).class
A SpringFactoryBean
that builds and exposes a preconfiguredForkJoinPool
.class
FactoryBean
that sets up aScheduledExecutorService
(by default: aScheduledThreadPoolExecutor
) and exposes it for bean references.class
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its nativeExecutorService
type.class
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.class
Implementation of Spring'sTaskScheduler
interface, wrapping a nativeScheduledThreadPoolExecutor
. -
Uses of DisposableBean in org.springframework.scheduling.config
Modifier and TypeClassDescriptionclass
ScheduledTaskRegistrar
subclass which redirects the actual scheduling of tasks to theContextLifecycleScheduledTaskRegistrar.afterSingletonsInstantiated()
callback (as of 4.1.2).class
Helper bean for registering tasks with aTaskScheduler
, typically using cron expressions.class
FactoryBean
for creatingThreadPoolTaskExecutor
instances, primarily used behind the XML task namespace. -
Uses of DisposableBean in org.springframework.scheduling.quartz
Modifier and TypeClassDescriptionclass
FactoryBean
that creates and configures a QuartzScheduler
, manages its lifecycle as part of the Spring application context, and exposes the Scheduler as bean reference for dependency injection.class
Subclass of Quartz's SimpleThreadPool that implements Spring'sTaskExecutor
interface and listens to Spring lifecycle callbacks. -
Uses of DisposableBean in org.springframework.scripting.support
Modifier and TypeClassDescriptionclass
BeanPostProcessor
that handlesScriptFactory
definitions, replacing each factory with the actual scripted Java object generated by it. -
Uses of DisposableBean in org.springframework.validation.beanvalidation
Modifier and TypeClassDescriptionclass
This is the central class forjakarta.validation
(JSR-303) setup in a Spring application context: It bootstraps ajakarta.validation.ValidationFactory
and exposes it through the SpringValidator
interface as well as through the JSR-303Validator
interface and theValidatorFactory
interface itself.class
LocalValidatorFactoryBean
subclass that simply turnsValidator
calls into no-ops in case of no Bean Validation provider being available. -
Uses of DisposableBean in org.springframework.web.context.support
-
Uses of DisposableBean in org.springframework.web.filter
Modifier and TypeClassDescriptionclass
Base class forFilter
s that perform logging operations before and after a request is processed.class
Servlet Filter that allows one to specify a character encoding for requests.class
Simple request logging filter that writes the request URI (and optionally the query string) to the Commons Log.class
Filter
to handle CORS pre-flight requests and intercept CORS simple and actual requests with aCorsProcessor
, and to update the response, e.g.class
Proxy for a standard Servlet Filter, delegating to a Spring-managed bean that implements the Filter interface.class
Filter
that parses form data for HTTP PUT, PATCH, and DELETE requests and exposes it as Servlet request parameters.class
Extract values from "Forwarded" and "X-Forwarded-*" headers, wrap the request and response, and make they reflect the client-originated protocol and address in the following methods:getServerName()
getServerPort()
getScheme()
isSecure()
sendRedirect(String)
.class
Simple base implementation ofFilter
which treats its config parameters (init-param
entries within thefilter
tag inweb.xml
) as bean properties.class
Filter
that converts posted method parameters into HTTP methods, retrievable viaHttpServletRequest.getMethod()
.class
Filter base class that aims to guarantee a single execution per request dispatch, on any servlet container.class
OverridesHttpServletResponse.sendRedirect(String)
and handles it by setting the HTTP status and "Location" headers, which keeps the Servlet container from re-writing relative redirect URLs into absolute ones.class
Servlet Filter that exposes the request to the current thread, through bothLocaleContextHolder
andRequestContextHolder
.class
Simple request logging filter that writes the request URI (and optionally the query string) to the ServletContext log.class
Filter
that generates anETag
value based on the content on the response. -
Uses of DisposableBean in org.springframework.web.multipart.support
Modifier and TypeClassDescriptionclass
Servlet Filter that resolves multipart requests via aMultipartResolver
. -
Uses of DisposableBean in org.springframework.web.observation
-
Uses of DisposableBean in org.springframework.web.servlet.mvc
Modifier and TypeClassDescriptionclass
Spring Controller implementation that wraps a servlet instance which it manages internally. -
Uses of DisposableBean in org.springframework.web.servlet.resource
Modifier and TypeClassDescriptionclass
A filter that wraps theHttpServletResponse
and overrides itsencodeURL
method in order to translate internal resource request URLs into public URL paths for external use. -
Uses of DisposableBean in org.springframework.web.servlet.view
Modifier and TypeClassDescriptionclass
Deprecated.as of 5.3, in favor of Spring's common view resolver variants and/or custom resolver implementationsclass
Deprecated.as of 5.3, in favor of Spring's common view resolver variants and/or custom resolver implementations