AeroGear Netty SockJS Codec 0.11.0

org.jboss.aerogear.io.netty.handler.codec.sockjs
Class AbstractSockJsServiceFactory

java.lang.Object
  extended by org.jboss.aerogear.io.netty.handler.codec.sockjs.AbstractSockJsServiceFactory
All Implemented Interfaces:
SockJsServiceFactory

public abstract class AbstractSockJsServiceFactory
extends Object
implements SockJsServiceFactory


Constructor Summary
protected AbstractSockJsServiceFactory(SockJsConfig config)
           
 
Method Summary
 SockJsConfig config()
          The SockJsConfig for the session itself.
abstract  SockJsService create()
          Creates a new instance, or reuse and existing instance, of the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSockJsServiceFactory

protected AbstractSockJsServiceFactory(SockJsConfig config)
Method Detail

create

public abstract SockJsService create()
Description copied from interface: SockJsServiceFactory
Creates a new instance, or reuse and existing instance, of the service. Allows for either creating new instances for every session of to use a single instance, whatever is appropriate for the use case.

Specified by:
create in interface SockJsServiceFactory
Returns:
SockJsService the service instance.

config

public SockJsConfig config()
Description copied from interface: SockJsServiceFactory
The SockJsConfig for the session itself.

Specified by:
config in interface SockJsServiceFactory
Returns:
Config the configuration for the session.

AeroGear Netty SockJS Codec 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.