de.novanic.eventservice.client.event
Class RemoteEventServiceFactory

java.lang.Object
  extended by de.novanic.eventservice.client.event.RemoteEventServiceFactory

public class RemoteEventServiceFactory
extends java.lang.Object

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

Author:
sstrohschein
Date: 08.06.2008
Time: 14:44:17
See Also:
DefaultRemoteEventService

Method Summary
static RemoteEventServiceFactory getInstance()
          This method should be used to create an instance of RemoteEventServiceFactory.
 RemoteEventService getRemoteEventService()
          This method should be used to create an instance of RemoteEventService.
static void reset()
          That method should only be used in TestCases, because it resets the factory and the factory can't ensure anymore that only one instance exists!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

Returns:
RemoteEventServiceFactory (singleton)

getRemoteEventService

public RemoteEventService getRemoteEventService()
This method should be used to create an instance of RemoteEventService. RemoteEventService is a singleton, so this method returns always the same instance of RemoteEventService. The session is needed to generate the client/user id.

Returns:
RemoteEventService (singleton)

reset

public static void reset()
That method should only be used in TestCases, because it resets the factory and the factory can't ensure anymore that only one instance exists!