fr.paris5.shaman
Class SingletonMap
java.lang.Object
|
+--fr.paris5.shaman.SingletonMap
- public final class SingletonMap
- extends java.lang.Object
Holds a map of objects whose instances should be kept unique during a
JUnit session. This class is necessary due to JUnit's class reloading,
whic forbids to treat singletons as Class variables.
- Version:
- $Id: SingletonMap.java,v 1.2 2002/07/01 09:55:28 caillette Exp $
- Author:
- Laurent Caillette
Method Summary |
java.lang.Object |
get(java.lang.Object key)
|
static SingletonMap |
getInstance()
|
void |
put(java.lang.Object key,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
INSTANCE
private static final SingletonMap INSTANCE
buildPerformed
private static boolean buildPerformed
singletons
private java.util.HashMap singletons
SingletonMap
public SingletonMap()
getInstance
public static SingletonMap getInstance()
get
public java.lang.Object get(java.lang.Object key)
put
public void put(java.lang.Object key,
java.lang.Object value)
Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.