de.novanic.eventservice.service
Class EventExecutorServiceFactory

java.lang.Object
  extended by de.novanic.eventservice.service.EventExecutorServiceFactory

public class EventExecutorServiceFactory
extends java.lang.Object

The EventExecutorServiceFactory is used to create the EventExecutorService and to ensure that only one instance of EventExecutorServiceFactory and EventExecutorService exists (singleton).

Author:
sstrohschein
Date: 20.07.2008
Time: 14:26:03
See Also:
EventExecutorService

Method Summary
 EventExecutorService getEventExecutorService(javax.servlet.http.HttpSession aHttpSession)
          This method should be used to create an instance of EventExecutorService.
 EventExecutorService getEventExecutorService(java.lang.String aClientId)
          This method should be used to create an instance of EventExecutorService.
static EventExecutorServiceFactory getInstance()
          This method should be used to create an instance of EventExecutorServiceFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EventExecutorServiceFactory getInstance()
This method should be used to create an instance of EventExecutorServiceFactory. EventExecutorServiceFactory is a singleton, so this method returns always the same instance of EventExecutorServiceFactory.

Returns:
EventExecutorServiceFactory (singleton)

getEventExecutorService

public EventExecutorService getEventExecutorService(javax.servlet.http.HttpSession aHttpSession)
This method should be used to create an instance of EventExecutorService. EventExecutorService is a singleton, so this method returns always the same instance of EventExecutorService. The session is needed to generate the client/user id.

Parameters:
aHttpSession - the session is needed to generate the client/user id
Returns:
EventExecutorService

getEventExecutorService

public EventExecutorService getEventExecutorService(java.lang.String aClientId)
This method should be used to create an instance of EventExecutorService. EventExecutorService is a singleton, so this method returns always the same instance of EventExecutorService.

Parameters:
aClientId - the client/user id
Returns:
EventExecutorService