Uses of Interface
org.springframework.context.Lifecycle
Packages that use Lifecycle
Package
Description
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.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
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.
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.
Support classes for handling messages from simple messaging protocols
(like STOMP).
Provides a "simple" message broker implementation along with an abstract base
class and other supporting types such as a registry for subscriptions.
Generic support for simple messaging protocols (like STOMP).
Support for handling messages to "user" destinations (i.e.
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 classes for the open source scheduler
Quartz,
allowing to set up Quartz Schedulers, JobDetails and
Triggers as beans in a Spring context.
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes.Server-side support classes for WebSocket requests.
Client-side abstractions for WebSocket applications.
Client-side classes for use with standard Jakarta WebSocket endpoints.
WebSocket integration for Spring's messaging module.
Server-side support classes including container-specific strategies
for upgrading a request.
SockJS client implementation of
WebSocketClient.Support classes for SockJS including an
AbstractSockJsService
implementation.Server-side support for SockJS transports including
TransportHandler implementations
for processing incoming requests, their
session
counterparts for sending messages over the various transports, and
DefaultSockJsService.TransportHandler
implementation classes as well as a concrete
SockJsService.-
Uses of Lifecycle in org.springframework.context
Subinterfaces of Lifecycle in org.springframework.contextModifier and TypeInterfaceDescriptioninterfaceSPI interface to be implemented by most if not all application contexts.interfaceStrategy interface for processing Lifecycle beans within the ApplicationContext.interfaceAn extension of theLifecycleinterface for those objects that require to be started uponApplicationContextrefresh and/or shutdown in a particular order. -
Uses of Lifecycle in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement LifecycleModifier and TypeClassDescriptionclassStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations. -
Uses of Lifecycle in org.springframework.context.support
Classes in org.springframework.context.support that implement LifecycleModifier and TypeClassDescriptionclassAbstract implementation of theApplicationContextinterface.classBase class forApplicationContextimplementations which are supposed to support multiple calls toAbstractApplicationContext.refresh(), creating a new internal bean factory instance every time.classAbstractRefreshableApplicationContextsubclass that adds common handling of specified config locations.classConvenient base class forApplicationContextimplementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader.classStandalone 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.classSpring's default implementation of theLifecycleProcessorstrategy.classStandalone 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.classGeneric ApplicationContext implementation that holds a single internalDefaultListableBeanFactoryinstance and does not assume a specific bean definition format.classAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String).classConvenient application context with built-in XML support.classApplicationContextimplementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.Methods in org.springframework.context.support that return types with arguments of type LifecycleModifier and TypeMethodDescriptionDefaultLifecycleProcessor.getLifecycleBeans()Retrieve all applicable Lifecycle beans: all singletons that have already been created, as well as all SmartLifecycle beans (even if they are marked as lazy-init).Methods in org.springframework.context.support with parameters of type Lifecycle -
Uses of Lifecycle in org.springframework.http.client
Classes in org.springframework.http.client that implement LifecycleModifier and TypeClassDescriptionclassReactor-Netty implementation ofClientHttpRequestFactory.classFactory to manage Reactor Netty resources, i.e. -
Uses of Lifecycle in org.springframework.http.client.reactive
Classes in org.springframework.http.client.reactive that implement LifecycleModifier and TypeClassDescriptionclassReactor-Netty implementation ofClientHttpConnector.classDeprecated. -
Uses of Lifecycle in org.springframework.jca.endpoint
Classes in org.springframework.jca.endpoint that implement LifecycleModifier and TypeClassDescriptionclassGeneric 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 Lifecycle in org.springframework.jms.config
Classes in org.springframework.jms.config that implement LifecycleModifier and TypeClassDescriptionclassCreates the necessaryMessageListenerContainerinstances for the registered endpoints. -
Uses of Lifecycle in org.springframework.jms.connection
Classes in org.springframework.jms.connection that implement LifecycleModifier and TypeClassDescriptionclassSingleConnectionFactorysubclass that addsSessioncaching as well asMessageProducerandMessageConsumercaching.classA JMS ConnectionFactory adapter that returns the same Connection from allSingleConnectionFactory.createConnection()calls, and ignores calls toConnection.close(). -
Uses of Lifecycle in org.springframework.jms.listener
Subinterfaces of Lifecycle in org.springframework.jms.listenerModifier and TypeInterfaceDescriptioninterfaceInternal abstraction used by the framework representing a message listener container.Classes in org.springframework.jms.listener that implement LifecycleModifier and TypeClassDescriptionclassCommon base class for all containers which need to implement listening based on a JMS Connection (either shared or freshly obtained for each attempt).classAbstract base class for Spring message listener container implementations.classBase class for listener container implementations which are based on polling.classMessage 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).classMessage listener container that uses the plain JMS client API'sMessageConsumer.setMessageListener()method to create concurrent MessageConsumers for the specified listeners. -
Uses of Lifecycle in org.springframework.jms.listener.endpoint
Classes in org.springframework.jms.listener.endpoint that implement LifecycleModifier and TypeClassDescriptionclassExtension of the generic JCA 1.5GenericMessageEndpointManager, adding JMS-specific support for ActivationSpec configuration. -
Uses of Lifecycle in org.springframework.messaging.simp.annotation.support
Classes in org.springframework.messaging.simp.annotation.support that implement LifecycleModifier and TypeClassDescriptionclassA handler for messages delegating to@MessageMappingand@SubscribeMappingannotated methods. -
Uses of Lifecycle in org.springframework.messaging.simp.broker
Classes in org.springframework.messaging.simp.broker that implement LifecycleModifier and TypeClassDescriptionclassAbstract base class for aMessageHandlerthat broker messages to registered subscribers.classA "simple" message broker that recognizes the message types defined inSimpMessageType, keeps track of subscriptions with the help of aSubscriptionRegistry, and sends messages to subscribers. -
Uses of Lifecycle in org.springframework.messaging.simp.stomp
Classes in org.springframework.messaging.simp.stomp that implement LifecycleModifier and TypeClassDescriptionclassAMessageHandlerthat handles messages by forwarding them to a STOMP broker. -
Uses of Lifecycle in org.springframework.messaging.simp.user
Classes in org.springframework.messaging.simp.user that implement LifecycleModifier and TypeClassDescriptionclassMessageHandlerwith support for "user" destinations. -
Uses of Lifecycle in org.springframework.scheduling.concurrent
Classes in org.springframework.scheduling.concurrent that implement LifecycleModifier and TypeClassDescriptionclassBase class for setting up aExecutorService(typically aThreadPoolExecutororScheduledThreadPoolExecutor).classFactoryBeanthat sets up aScheduledExecutorService(by default: aScheduledThreadPoolExecutor) and exposes it for bean references.classA simple implementation of Spring'sTaskSchedulerinterface, using a single scheduler thread and executing every scheduled task in an individual separate thread.classJavaBean that allows for configuring aThreadPoolExecutorin bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its nativeExecutorServicetype.classJavaBean that allows for configuring aThreadPoolExecutorin bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor.classA standard implementation of Spring'sTaskSchedulerinterface, wrapping a nativeScheduledThreadPoolExecutorand providing all applicable configuration options for it. -
Uses of Lifecycle in org.springframework.scheduling.quartz
Classes in org.springframework.scheduling.quartz that implement LifecycleModifier and TypeClassDescriptionclassFactoryBeanthat 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. -
Uses of Lifecycle in org.springframework.web.context
Subinterfaces of Lifecycle in org.springframework.web.contextModifier and TypeInterfaceDescriptioninterfaceInterface to be implemented by configurable web application contexts. -
Uses of Lifecycle in org.springframework.web.context.support
Classes in org.springframework.web.context.support that implement LifecycleModifier and TypeClassDescriptionclassAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.classWebApplicationContextimplementation which accepts component classes as input — in particular@Configurationclasses, but also plain@Componentclasses as well as JSR-330 compliant classes usingjakarta.injectannotations.classSubclass ofGenericApplicationContext, suitable for web environments.classWebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.classStaticWebApplicationContextimplementation for testing.classWebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader. -
Uses of Lifecycle in org.springframework.web.reactive.socket.server.support
Classes in org.springframework.web.reactive.socket.server.support that implement LifecycleModifier and TypeClassDescriptionclassWebSocketServiceimplementation that handles a WebSocket HTTP handshake request by delegating to aRequestUpgradeStrategywhich is either auto-detected (no-arg constructor) from the classpath but can also be explicitly configured. -
Uses of Lifecycle in org.springframework.web.socket.client
Classes in org.springframework.web.socket.client that implement LifecycleModifier and TypeClassDescriptionclassBase class for a connection manager that automates the process of connecting to a WebSocket server with the Spring ApplicationContext lifecycle.classWebSocketconnection managerthat connects to the server viaWebSocketClientand handles the session with aWebSocketHandler. -
Uses of Lifecycle in org.springframework.web.socket.client.standard
Classes in org.springframework.web.socket.client.standard that implement LifecycleModifier and TypeClassDescriptionclassWebSocketconnection managerthat connects to the server viaWebSocketContainerand handles the session with an@ClientEndpointendpoint.classWebSocketconnection managerthat connects to the server viaWebSocketContainerand handles the session with anEndpoint. -
Uses of Lifecycle in org.springframework.web.socket.messaging
Classes in org.springframework.web.socket.messaging that implement LifecycleModifier and TypeClassDescriptionclassAn implementation ofWebSocketHandlerthat delegates incoming WebSocket messages to aSubProtocolHandleralong with aMessageChannelto which the sub-protocol handler can send messages from WebSocket clients to the application.classA subclass ofSimpAnnotationMethodMessageHandlerto provide support forControllerAdvicewith global@MessageExceptionHandlermethods.classA STOMP over WebSocket client that connects using an implementation ofWebSocketClientincludingSockJsClient. -
Uses of Lifecycle in org.springframework.web.socket.server.support
Classes in org.springframework.web.socket.server.support that implement LifecycleModifier and TypeClassDescriptionclassA base class forHandshakeHandlerimplementations, independent of the Servlet API.classA defaultHandshakeHandlerimplementation, extendingAbstractHandshakeHandlerwith Servlet-specific initialization support.classExtension ofSimpleUrlHandlerMappingwith support for more precise mapping of WebSocket handshake requests to handlers of typeWebSocketHttpRequestHandler.classAHttpRequestHandlerfor processing WebSocket handshake requests. -
Uses of Lifecycle in org.springframework.web.socket.sockjs.client
Classes in org.springframework.web.socket.sockjs.client that implement LifecycleModifier and TypeClassDescriptionclassAn XHR transport based on Jetty'sHttpClient.classA SockJS implementation ofWebSocketClientwith fallback alternatives that simulate a WebSocket interaction through plain HTTP streaming and long polling techniques.classA SockJSTransportthat uses aWebSocketClient. -
Uses of Lifecycle in org.springframework.web.socket.sockjs.support
Classes in org.springframework.web.socket.sockjs.support that implement LifecycleModifier and TypeClassDescriptionclassAnHttpRequestHandlerthat allows mapping aSockJsServiceto requests in a Servlet container. -
Uses of Lifecycle in org.springframework.web.socket.sockjs.transport
Classes in org.springframework.web.socket.sockjs.transport that implement LifecycleModifier and TypeClassDescriptionclassA basic implementation ofSockJsServicewith support for SPI-based transport handling and session management. -
Uses of Lifecycle in org.springframework.web.socket.sockjs.transport.handler
Classes in org.springframework.web.socket.sockjs.transport.handler that implement LifecycleModifier and TypeClassDescriptionclassA default implementation ofSockJsServicewith all defaultTransportHandlerimplementations pre-registered.classWebSocket-basedTransportHandler.
ReactorResourceFactoryinstead.