org.almendra.janet.cas.simulator
Class Registry
java.lang.Object
org.almendra.janet.cas.simulator.Registry
public class Registry
- extends java.lang.Object
- Author:
- Oliver
Field Summary |
protected java.util.Map |
registry
|
static Registry |
TheInstance
Declared public on Purpose so that the contents can be inspected when testing. |
Method Summary |
void |
bind(java.lang.String key,
java.lang.Object object)
|
static void |
clear()
|
static Registry |
get()
|
java.lang.String[] |
list()
|
java.lang.Object |
lookup(java.lang.String key)
|
void |
unbind(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TheInstance
public static Registry TheInstance
- Declared public on Purpose so that the contents can be inspected when testing.
The simulated mode is for develeopment and test only.
registry
protected java.util.Map registry
Registry
public Registry()
lookup
public java.lang.Object lookup(java.lang.String key)
bind
public void bind(java.lang.String key,
java.lang.Object object)
throws java.rmi.AlreadyBoundException
- Throws:
java.rmi.AlreadyBoundException
unbind
public void unbind(java.lang.String key)
get
public static Registry get()
list
public java.lang.String[] list()
clear
public static void clear()