edu.nyu.cs.pdsg.switchboard
Class SingletonLifetimeManagerFactory

java.lang.Object
  extended byedu.nyu.cs.pdsg.switchboard.SingletonLifetimeManagerFactory
All Implemented Interfaces:
LifetimeManagerFactory, SbEventHandlerFactory

public class SingletonLifetimeManagerFactory
extends java.lang.Object
implements LifetimeManagerFactory

For when you want to serve one instance of an object


Field Summary
private  java.io.Serializable singleton
           
 
Constructor Summary
SingletonLifetimeManagerFactory(java.io.Serializable _singleton)
           
 
Method Summary
 LifetimeManager createLifetimeManager()
          Returns an instance of a particular LifetimeMangerFactory's default version of LifetimeManager.
 SbEventHandler createSbEventHandler()
          Returns an instance of a particular SbEventHandlerFactory's default version of an SbEventHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

private java.io.Serializable singleton
Constructor Detail

SingletonLifetimeManagerFactory

public SingletonLifetimeManagerFactory(java.io.Serializable _singleton)
Method Detail

createLifetimeManager

public LifetimeManager createLifetimeManager()
Description copied from interface: LifetimeManagerFactory
Returns an instance of a particular LifetimeMangerFactory's default version of LifetimeManager.

Specified by:
createLifetimeManager in interface LifetimeManagerFactory
Returns:
a SingletonLifetimeManager

createSbEventHandler

public SbEventHandler createSbEventHandler()
Description copied from interface: SbEventHandlerFactory
Returns an instance of a particular SbEventHandlerFactory's default version of an SbEventHandler.

Specified by:
createSbEventHandler in interface SbEventHandlerFactory
Returns:
a SingletonLifetimeManager, which implements SbEventHander


Copyright (c) 2002-2003 New York University RLAB