org.kasource.web.websocket.spring
Class SpringWebSocketFactory

java.lang.Object
  extended by org.kasource.web.websocket.WebSocketFactoryImpl
      extended by org.kasource.web.websocket.spring.SpringWebSocketFactory
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextAttributeListener, WebSocketFactory, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.web.context.ServletContextAware

public class SpringWebSocketFactory
extends WebSocketFactoryImpl
implements org.springframework.web.context.ServletContextAware, org.springframework.beans.factory.InitializingBean


Field Summary
 
Fields inherited from class org.kasource.web.websocket.WebSocketFactoryImpl
servletContext
 
Constructor Summary
SpringWebSocketFactory()
           
 
Method Summary
 void afterPropertiesSet()
          On initialization, create all web sockets currently available in the servlet context.
 void setServletContext(javax.servlet.ServletContext servletContext)
          Set the servlet context to use.
 
Methods inherited from class org.kasource.web.websocket.WebSocketFactoryImpl
attributeAdded, attributeRemoved, attributeReplaced, get, initialize, listenTo, listenTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringWebSocketFactory

public SpringWebSocketFactory()
Method Detail

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Set the servlet context to use.

Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
On initialization, create all web sockets currently available in the servlet context.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2012. All Rights Reserved.