接口的使用
org.springframework.context.Lifecycle
使用Lifecycle的程序包 程序包 说明 org.springframework.context This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.jca.context Integration package that allows for deploying a Spring application context as a JCA 1.7 compliant RAR file.org.springframework.jca.endpoint This package provides a facility for generic JCA message endpoint management.org.springframework.jms.config Support package for declarative messaging configuration, with Java configuration and XML schema support.org.springframework.jms.listener This package contains the base message listener container facility.org.springframework.jms.listener.endpoint This package provides JCA-based endpoint management for JMS message listeners.org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.messaging.simp.broker Provides a "simple" message broker implementation along with an abstract base class and other supporting types such as a registry for subscriptions.org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.org.springframework.scheduling.commonj Convenience classes for scheduling based on the CommonJ WorkManager/TimerManager facility, as supported by IBM WebSphere 6.0+ and BEA WebLogic 9.0+.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.web.context Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.web.reactive.socket.client Client support for WebSocket interactions.org.springframework.web.reactive.socket.server.support Server-side support classes for WebSocket requests.org.springframework.web.reactive.socket.server.upgrade Holds implementations ofRequestUpgradeStrategy
.org.springframework.web.socket.client Client-side abstractions for WebSocket applications.org.springframework.web.socket.client.jetty Client-side support for the Jetty WebSocket API.org.springframework.web.socket.client.standard Client-side classes for use with standard Java WebSocket endpoints.org.springframework.web.socket.messaging WebSocket integration for Spring's messaging module.org.springframework.web.socket.server.jetty Server-side support for the Jetty 9+ WebSocket API.org.springframework.web.socket.server.support Server-side support classes including container-specific strategies for upgrading a request.org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient
.org.springframework.web.socket.sockjs.support Support classes for SockJS including anAbstractSockJsService
implementation.org.springframework.web.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandler
implementations for processing incoming requests, theirsession
counterparts for sending messages over the various transports, andDefaultSockJsService
.org.springframework.web.socket.sockjs.transport.handler TransportHandler
implementation classes as well as a concreteSockJsService
.org.springframework.context中Lifecycle的使用
org.springframework.context中Lifecycle的子接口 修饰符和类型 接口 说明 interface
ConfigurableApplicationContext
SPI interface to be implemented by most if not all application contexts.interface
LifecycleProcessor
Strategy interface for processing Lifecycle beans within the ApplicationContext.interface
SmartLifecycle
An extension of theLifecycle
interface for those objects that require to be started uponApplicationContext
refresh and/or shutdown in a particular order.org.springframework.context.annotation中Lifecycle的使用
实现Lifecycle的org.springframework.context.annotation中的类 修饰符和类型 类 说明 class
AnnotationConfigApplicationContext
Standalone application context, accepting component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
types and JSR-330 compliant classes usingjavax.inject
annotations.org.springframework.context.support中Lifecycle的使用
实现Lifecycle的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
DefaultLifecycleProcessor
Default implementation of theLifecycleProcessor
strategy.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.返回变量类型为Lifecycle的类型的org.springframework.context.support中的方法 修饰符和类型 方法 说明 protected Map<String,Lifecycle>
DefaultLifecycleProcessor. 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).参数类型为Lifecycle的org.springframework.context.support中的方法 修饰符和类型 方法 说明 protected int
DefaultLifecycleProcessor. getPhase(Lifecycle bean)
Determine the lifecycle phase of the given bean.org.springframework.jca.context中Lifecycle的使用
实现Lifecycle的org.springframework.jca.context中的类 修饰符和类型 类 说明 class
ResourceAdapterApplicationContext
ApplicationContext
implementation for a JCA ResourceAdapter.org.springframework.jca.endpoint中Lifecycle的使用
实现Lifecycle的org.springframework.jca.endpoint中的类 修饰符和类型 类 说明 class
GenericMessageEndpointManager
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.org.springframework.jms.config中Lifecycle的使用
实现Lifecycle的org.springframework.jms.config中的类 修饰符和类型 类 说明 class
JmsListenerEndpointRegistry
Creates the necessaryMessageListenerContainer
instances for the registered endpoints.org.springframework.jms.listener中Lifecycle的使用
org.springframework.jms.listener中Lifecycle的子接口 修饰符和类型 接口 说明 interface
MessageListenerContainer
Internal abstraction used by the framework representing a message listener container.实现Lifecycle的org.springframework.jms.listener中的类 修饰符和类型 类 说明 class
AbstractJmsListeningContainer
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
AbstractMessageListenerContainer
Abstract base class for Spring message listener container implementations.class
AbstractPollingMessageListenerContainer
Base class for listener container implementations which are based on polling.class
DefaultMessageListenerContainer
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
SimpleMessageListenerContainer
Message listener container that uses the plain JMS client API'sMessageConsumer.setMessageListener()
method to create concurrent MessageConsumers for the specified listeners.org.springframework.jms.listener.endpoint中Lifecycle的使用
实现Lifecycle的org.springframework.jms.listener.endpoint中的类 修饰符和类型 类 说明 class
JmsMessageEndpointManager
Extension of the generic JCA 1.5GenericMessageEndpointManager
, adding JMS-specific support for ActivationSpec configuration.org.springframework.messaging.simp.annotation.support中Lifecycle的使用
实现Lifecycle的org.springframework.messaging.simp.annotation.support中的类 修饰符和类型 类 说明 class
SimpAnnotationMethodMessageHandler
A handler for messages delegating to@MessageMapping
and@SubscribeMapping
annotated methods.org.springframework.messaging.simp.broker中Lifecycle的使用
实现Lifecycle的org.springframework.messaging.simp.broker中的类 修饰符和类型 类 说明 class
AbstractBrokerMessageHandler
Abstract base class for aMessageHandler
that broker messages to registered subscribers.class
SimpleBrokerMessageHandler
A "simple" message broker that recognizes the message types defined inSimpMessageType
, keeps track of subscriptions with the help of aSubscriptionRegistry
and sends messages to subscribers.org.springframework.messaging.simp.stomp中Lifecycle的使用
实现Lifecycle的org.springframework.messaging.simp.stomp中的类 修饰符和类型 类 说明 class
StompBrokerRelayMessageHandler
AMessageHandler
that handles messages by forwarding them to a STOMP broker.org.springframework.messaging.simp.user中Lifecycle的使用
实现Lifecycle的org.springframework.messaging.simp.user中的类 修饰符和类型 类 说明 class
UserDestinationMessageHandler
MessageHandler
with support for "user" destinations.org.springframework.scheduling.commonj中Lifecycle的使用
实现Lifecycle的org.springframework.scheduling.commonj中的类 修饰符和类型 类 说明 class
TimerManagerAccessor
已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskScheduler
class
TimerManagerFactoryBean
已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskScheduler
class
TimerManagerTaskScheduler
已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskScheduler
org.springframework.scheduling.quartz中Lifecycle的使用
实现Lifecycle的org.springframework.scheduling.quartz中的类 修饰符和类型 类 说明 class
SchedulerFactoryBean
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.org.springframework.web.context中Lifecycle的使用
org.springframework.web.context中Lifecycle的子接口 修饰符和类型 接口 说明 interface
ConfigurableWebApplicationContext
Interface to be implemented by configurable web application contexts.org.springframework.web.context.support中Lifecycle的使用
实现Lifecycle的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.reactive.socket.client中Lifecycle的使用
实现Lifecycle的org.springframework.web.reactive.socket.client中的类 修饰符和类型 类 说明 class
JettyWebSocketClient
AWebSocketClient
implementation for use with JettyWebSocketClient
.org.springframework.web.reactive.socket.server.support中Lifecycle的使用
实现Lifecycle的org.springframework.web.reactive.socket.server.support中的类 修饰符和类型 类 说明 class
HandshakeWebSocketService
WebSocketService
implementation that handles a WebSocket HTTP handshake request by delegating to aRequestUpgradeStrategy
which is either auto-detected (no-arg constructor) from the classpath but can also be explicitly configured.org.springframework.web.reactive.socket.server.upgrade中Lifecycle的使用
实现Lifecycle的org.springframework.web.reactive.socket.server.upgrade中的类 修饰符和类型 类 说明 class
JettyRequestUpgradeStrategy
ARequestUpgradeStrategy
for use with Jetty.org.springframework.web.socket.client中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.client中的类 修饰符和类型 类 说明 class
ConnectionManagerSupport
A base class for WebSocket connection managers.class
WebSocketConnectionManager
A WebSocket connection manager that is given a URI, aWebSocketClient
, and aWebSocketHandler
, connects to a WebSocket server throughConnectionManagerSupport.start()
andConnectionManagerSupport.stop()
methods.org.springframework.web.socket.client.jetty中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.client.jetty中的类 修饰符和类型 类 说明 class
JettyWebSocketClient
Initiates WebSocket requests to a WebSocket server programmatically through the Jetty WebSocket API.org.springframework.web.socket.client.standard中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.client.standard中的类 修饰符和类型 类 说明 class
AnnotatedEndpointConnectionManager
A WebSocket connection manager that is given a URI, aClientEndpoint
-annotated endpoint, connects to a WebSocket server through theConnectionManagerSupport.start()
andConnectionManagerSupport.stop()
methods.class
EndpointConnectionManager
A WebSocket connection manager that is given a URI, anEndpoint
, connects to a WebSocket server through theConnectionManagerSupport.start()
andConnectionManagerSupport.stop()
methods.org.springframework.web.socket.messaging中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.messaging中的类 修饰符和类型 类 说明 class
SubProtocolWebSocketHandler
An implementation ofWebSocketHandler
that delegates incoming WebSocket messages to aSubProtocolHandler
along with aMessageChannel
to which the sub-protocol handler can send messages from WebSocket clients to the application.class
WebSocketAnnotationMethodMessageHandler
A sub-class ofSimpAnnotationMethodMessageHandler
to provide support forControllerAdvice
with global@MessageExceptionHandler
methods.class
WebSocketStompClient
A STOMP over WebSocket client that connects using an implementation ofWebSocketClient
includingSockJsClient
.org.springframework.web.socket.server.jetty中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.server.jetty中的类 修饰符和类型 类 说明 class
JettyRequestUpgradeStrategy
ARequestUpgradeStrategy
for use with Jetty 9.4.org.springframework.web.socket.server.support中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.server.support中的类 修饰符和类型 类 说明 class
AbstractHandshakeHandler
A base class forHandshakeHandler
implementations, independent from the Servlet API.class
DefaultHandshakeHandler
A defaultHandshakeHandler
implementation, extendingAbstractHandshakeHandler
with Servlet-specific initialization support.class
WebSocketHandlerMapping
An extension ofSimpleUrlHandlerMapping
that is also aSmartLifecycle
container and propagates start and stop calls to any handlers that implementLifecycle
.class
WebSocketHttpRequestHandler
AHttpRequestHandler
for processing WebSocket handshake requests.org.springframework.web.socket.sockjs.client中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.sockjs.client中的类 修饰符和类型 类 说明 class
JettyXhrTransport
An XHR transport based on Jetty'sHttpClient
.class
SockJsClient
A SockJS implementation ofWebSocketClient
with fallback alternatives that simulate a WebSocket interaction through plain HTTP streaming and long polling techniques..class
WebSocketTransport
A SockJSTransport
that uses aWebSocketClient
.org.springframework.web.socket.sockjs.support中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.sockjs.support中的类 修饰符和类型 类 说明 class
SockJsHttpRequestHandler
AnHttpRequestHandler
that allows mapping aSockJsService
to requests in a Servlet container.org.springframework.web.socket.sockjs.transport中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.sockjs.transport中的类 修饰符和类型 类 说明 class
TransportHandlingSockJsService
A basic implementation ofSockJsService
with support for SPI-based transport handling and session management.org.springframework.web.socket.sockjs.transport.handler中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.sockjs.transport.handler中的类 修饰符和类型 类 说明 class
DefaultSockJsService
A default implementation ofSockJsService
with all defaultTransportHandler
implementations pre-registered.class
WebSocketTransportHandler
WebSocket-basedTransportHandler
.