@Configuration
@ConditionalOnProperty(prefix="plus.jdk.websocket",
name="enabled",
havingValue="true")
@EnableConfigurationProperties(value=WebsocketProperties.class)
public class WebsocketAutoConfiguration
extends org.springframework.web.context.support.WebApplicationObjectSupport
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| 构造器和说明 |
|---|
WebsocketAutoConfiguration(WebsocketProperties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
UserChannelConnectSynchronizer |
getHeartbeatSynchronizer(WebsocketProperties properties) |
ServerEndpointExporter |
serverEndpointExporter(WebsocketProperties properties) |
SessionGroupManager |
SessionGroupManager(WebsocketProperties properties) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
WebsocketDispatcher |
WebsocketDispatcher(WebsocketProperties properties) |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic WebsocketAutoConfiguration(WebsocketProperties properties)
@Bean public SessionGroupManager SessionGroupManager(WebsocketProperties properties)
@Bean public WebsocketDispatcher WebsocketDispatcher(WebsocketProperties properties)
@Bean public ServerEndpointExporter serverEndpointExporter(WebsocketProperties properties)
@Bean public UserChannelConnectSynchronizer getHeartbeatSynchronizer(WebsocketProperties properties)
public void destroy()
destroy 在接口中 org.springframework.beans.factory.DisposableBeanpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionCopyright © 2022. All rights reserved.