org.glite.data.common.mock
Class MockLibrary

java.lang.Object
  extended byorg.glite.data.common.mock.MockLibrary

public class MockLibrary
extends java.lang.Object

Singleton place to put and access the generated MockObjects. Used by the JNDI factory class (which the user code never sees) to give access the generated Mock InitialContext, so that it xan be filled in with whatever the test requires.


Field Summary
static java.lang.String INITIAL_CONTEXT
          The initial Moc k JNDI context, if it has been created.
 
Method Summary
 void discardAll()
           
 java.lang.Object get(java.lang.String key)
           
static MockLibrary getMockLibrary()
           
 void put(java.lang.String key, java.lang.Object ob)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_CONTEXT

public static final java.lang.String INITIAL_CONTEXT
The initial Moc k JNDI context, if it has been created.

See Also:
Constant Field Values
Method Detail

getMockLibrary

public static MockLibrary getMockLibrary()

put

public void put(java.lang.String key,
                java.lang.Object ob)

get

public java.lang.Object get(java.lang.String key)

discardAll

public void discardAll()