|
Constructor Summary | ||
NamedObjectRegistry() Default constructor. |
||
NamedObjectRegistry(Class<T> type) Constructor that takes care of setStorageType(Class). |
Method Summary | ||
getAllNamedObjects() | ||
getNamedObject(String name) Get a named object if it has been registered |
||
void |
register(String name, T object) Register a named object instance. |
|
void |
reset() | |
void |
setNamePattern(String namePattern) Optionally set a pattern to which all object names must conform |
|
void |
setStorageType(Class<T> clazz) Set the type of class that the registry holds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
|