接口的使用
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.contextpackage, 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 anAbstractSockJsServiceimplementation.org.springframework.web.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandlerimplementations for processing incoming requests, theirsessioncounterparts for sending messages over the various transports, andDefaultSockJsService.org.springframework.web.socket.sockjs.transport.handler TransportHandlerimplementation classes as well as a concreteSockJsService.org.springframework.context中Lifecycle的使用
org.springframework.context中Lifecycle的子接口 修饰符和类型 接口 说明 interfaceConfigurableApplicationContextSPI interface to be implemented by most if not all application contexts.interfaceLifecycleProcessorStrategy interface for processing Lifecycle beans within the ApplicationContext.interfaceSmartLifecycleAn extension of theLifecycleinterface for those objects that require to be started uponApplicationContextrefresh and/or shutdown in a particular order.org.springframework.context.annotation中Lifecycle的使用
实现Lifecycle的org.springframework.context.annotation中的类 修饰符和类型 类 说明 classAnnotationConfigApplicationContextStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjavax.injectannotations.org.springframework.context.support中Lifecycle的使用
实现Lifecycle的org.springframework.context.support中的类 修饰符和类型 类 说明 classAbstractApplicationContextAbstract implementation of theApplicationContextinterface.classAbstractRefreshableApplicationContextBase class forApplicationContextimplementations which are supposed to support multiple calls toAbstractApplicationContext.refresh(), creating a new internal bean factory instance every time.classAbstractRefreshableConfigApplicationContextAbstractRefreshableApplicationContextsubclass that adds common handling of specified config locations.classAbstractXmlApplicationContextConvenient base class forApplicationContextimplementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader.classClassPathXmlApplicationContextStandalone 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.classDefaultLifecycleProcessorDefault implementation of theLifecycleProcessorstrategy.classFileSystemXmlApplicationContextStandalone 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.classGenericApplicationContextGeneric ApplicationContext implementation that holds a single internalDefaultListableBeanFactoryinstance and does not assume a specific bean definition format.classGenericGroovyApplicationContextAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String).classGenericXmlApplicationContextConvenient application context with built-in XML support.classStaticApplicationContextApplicationContextimplementation 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 intDefaultLifecycleProcessor. getPhase(Lifecycle bean)Determine the lifecycle phase of the given bean.org.springframework.jca.context中Lifecycle的使用
实现Lifecycle的org.springframework.jca.context中的类 修饰符和类型 类 说明 classResourceAdapterApplicationContextApplicationContextimplementation for a JCA ResourceAdapter.org.springframework.jca.endpoint中Lifecycle的使用
实现Lifecycle的org.springframework.jca.endpoint中的类 修饰符和类型 类 说明 classGenericMessageEndpointManagerGeneric 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中的类 修饰符和类型 类 说明 classJmsListenerEndpointRegistryCreates the necessaryMessageListenerContainerinstances for the registered endpoints.org.springframework.jms.listener中Lifecycle的使用
org.springframework.jms.listener中Lifecycle的子接口 修饰符和类型 接口 说明 interfaceMessageListenerContainerInternal abstraction used by the framework representing a message listener container.实现Lifecycle的org.springframework.jms.listener中的类 修饰符和类型 类 说明 classAbstractJmsListeningContainerCommon base class for all containers which need to implement listening based on a JMS Connection (either shared or freshly obtained for each attempt).classAbstractMessageListenerContainerAbstract base class for Spring message listener container implementations.classAbstractPollingMessageListenerContainerBase class for listener container implementations which are based on polling.classDefaultMessageListenerContainerMessage 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).classSimpleMessageListenerContainerMessage 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中的类 修饰符和类型 类 说明 classJmsMessageEndpointManagerExtension 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中的类 修饰符和类型 类 说明 classSimpAnnotationMethodMessageHandlerA handler for messages delegating to@MessageMappingand@SubscribeMappingannotated methods.org.springframework.messaging.simp.broker中Lifecycle的使用
实现Lifecycle的org.springframework.messaging.simp.broker中的类 修饰符和类型 类 说明 classAbstractBrokerMessageHandlerAbstract base class for aMessageHandlerthat broker messages to registered subscribers.classSimpleBrokerMessageHandlerA "simple" message broker that recognizes the message types defined inSimpMessageType, keeps track of subscriptions with the help of aSubscriptionRegistryand sends messages to subscribers.org.springframework.messaging.simp.stomp中Lifecycle的使用
实现Lifecycle的org.springframework.messaging.simp.stomp中的类 修饰符和类型 类 说明 classStompBrokerRelayMessageHandlerAMessageHandlerthat handles messages by forwarding them to a STOMP broker.org.springframework.messaging.simp.user中Lifecycle的使用
实现Lifecycle的org.springframework.messaging.simp.user中的类 修饰符和类型 类 说明 classUserDestinationMessageHandlerMessageHandlerwith support for "user" destinations.org.springframework.scheduling.commonj中Lifecycle的使用
实现Lifecycle的org.springframework.scheduling.commonj中的类 修饰符和类型 类 说明 classTimerManagerAccessor已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskSchedulerclassTimerManagerFactoryBean已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskSchedulerclassTimerManagerTaskScheduler已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskSchedulerorg.springframework.scheduling.quartz中Lifecycle的使用
实现Lifecycle的org.springframework.scheduling.quartz中的类 修饰符和类型 类 说明 classSchedulerFactoryBeanFactoryBeanthat 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的子接口 修饰符和类型 接口 说明 interfaceConfigurableWebApplicationContextInterface to be implemented by configurable web application contexts.org.springframework.web.context.support中Lifecycle的使用
实现Lifecycle的org.springframework.web.context.support中的类 修饰符和类型 类 说明 classAbstractRefreshableWebApplicationContextAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.classAnnotationConfigWebApplicationContextWebApplicationContextimplementation which accepts component classes as input — in particular@Configuration-annotated classes, but also plain@Componentclasses and JSR-330 compliant classes usingjavax.injectannotations.classGenericWebApplicationContextSubclass ofGenericApplicationContext, suitable for web environments.classGroovyWebApplicationContextWebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.classStaticWebApplicationContextStaticWebApplicationContextimplementation for testing.classXmlWebApplicationContextWebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader.org.springframework.web.reactive.socket.client中Lifecycle的使用
实现Lifecycle的org.springframework.web.reactive.socket.client中的类 修饰符和类型 类 说明 classJettyWebSocketClientAWebSocketClientimplementation for use with JettyWebSocketClient.org.springframework.web.reactive.socket.server.support中Lifecycle的使用
实现Lifecycle的org.springframework.web.reactive.socket.server.support中的类 修饰符和类型 类 说明 classHandshakeWebSocketServiceWebSocketServiceimplementation 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.org.springframework.web.reactive.socket.server.upgrade中Lifecycle的使用
实现Lifecycle的org.springframework.web.reactive.socket.server.upgrade中的类 修饰符和类型 类 说明 classJettyRequestUpgradeStrategyARequestUpgradeStrategyfor use with Jetty.org.springframework.web.socket.client中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.client中的类 修饰符和类型 类 说明 classConnectionManagerSupportA base class for WebSocket connection managers.classWebSocketConnectionManagerA 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中的类 修饰符和类型 类 说明 classJettyWebSocketClientInitiates 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中的类 修饰符和类型 类 说明 classAnnotatedEndpointConnectionManagerA WebSocket connection manager that is given a URI, aClientEndpoint-annotated endpoint, connects to a WebSocket server through theConnectionManagerSupport.start()andConnectionManagerSupport.stop()methods.classEndpointConnectionManagerA 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中的类 修饰符和类型 类 说明 classSubProtocolWebSocketHandlerAn implementation ofWebSocketHandlerthat delegates incoming WebSocket messages to aSubProtocolHandleralong with aMessageChannelto which the sub-protocol handler can send messages from WebSocket clients to the application.classWebSocketAnnotationMethodMessageHandlerA sub-class ofSimpAnnotationMethodMessageHandlerto provide support forControllerAdvicewith global@MessageExceptionHandlermethods.classWebSocketStompClientA STOMP over WebSocket client that connects using an implementation ofWebSocketClientincludingSockJsClient.org.springframework.web.socket.server.jetty中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.server.jetty中的类 修饰符和类型 类 说明 classJettyRequestUpgradeStrategyARequestUpgradeStrategyfor use with Jetty 9.4.org.springframework.web.socket.server.support中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.server.support中的类 修饰符和类型 类 说明 classAbstractHandshakeHandlerA base class forHandshakeHandlerimplementations, independent from the Servlet API.classDefaultHandshakeHandlerA defaultHandshakeHandlerimplementation, extendingAbstractHandshakeHandlerwith Servlet-specific initialization support.classWebSocketHandlerMappingAn extension ofSimpleUrlHandlerMappingthat is also aSmartLifecyclecontainer and propagates start and stop calls to any handlers that implementLifecycle.classWebSocketHttpRequestHandlerAHttpRequestHandlerfor processing WebSocket handshake requests.org.springframework.web.socket.sockjs.client中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.sockjs.client中的类 修饰符和类型 类 说明 classJettyXhrTransportAn XHR transport based on Jetty'sHttpClient.classSockJsClientA SockJS implementation ofWebSocketClientwith fallback alternatives that simulate a WebSocket interaction through plain HTTP streaming and long polling techniques..classWebSocketTransportA SockJSTransportthat uses aWebSocketClient.org.springframework.web.socket.sockjs.support中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.sockjs.support中的类 修饰符和类型 类 说明 classSockJsHttpRequestHandlerAnHttpRequestHandlerthat allows mapping aSockJsServiceto requests in a Servlet container.org.springframework.web.socket.sockjs.transport中Lifecycle的使用
实现Lifecycle的org.springframework.web.socket.sockjs.transport中的类 修饰符和类型 类 说明 classTransportHandlingSockJsServiceA basic implementation ofSockJsServicewith 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中的类 修饰符和类型 类 说明 classDefaultSockJsServiceA default implementation ofSockJsServicewith all defaultTransportHandlerimplementations pre-registered.classWebSocketTransportHandlerWebSocket-basedTransportHandler.