de.novanic.eventservice.client.event.command.schedule
Class ClientCommandSchedulerFactory

java.lang.Object
  extended by de.novanic.eventservice.client.event.command.schedule.ClientCommandSchedulerFactory

public class ClientCommandSchedulerFactory
extends java.lang.Object

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

Author:
sstrohschein
Date: 04.04.2009
Time: 22:26:18
See Also:
ClientCommandScheduler

Method Summary
 ClientCommandScheduler getClientCommandScheduler()
          This method should be used to create an instance of RemoteEventService.
static ClientCommandSchedulerFactory getInstance()
          This method should be used to create an instance of ClientCommandSchedulerFactory.
 void reset()
          Resets the ClientCommandScheduler instance.
 void setClientCommandSchedulerInstance(ClientCommandScheduler aClientCommandScheduler)
          Sets an instance of ClientCommandScheduler which is returned by getClientCommandScheduler().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

Returns:
ClientCommandSchedulerFactory (singleton)

getClientCommandScheduler

public ClientCommandScheduler getClientCommandScheduler()
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)

setClientCommandSchedulerInstance

public void setClientCommandSchedulerInstance(ClientCommandScheduler aClientCommandScheduler)
Sets an instance of ClientCommandScheduler which is returned by getClientCommandScheduler().

Parameters:
aClientCommandScheduler - ClientCommandScheduler

reset

public void reset()
Resets the ClientCommandScheduler instance.