groovyx.gpars.activeobject
Class ActiveObjectRegistry
java.lang.Object
groovyx.gpars.activeobject.ActiveObjectRegistry
public final class ActiveObjectRegistry
- extends java.lang.Object
Maps string identifiers to instances of PGroup.
Active objects may refer to their desired groups by the identifiers and they will look the groups up in the registry.
- Author:
- Vaclav Pech
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ourInstance
private static final ActiveObjectRegistry ourInstance
registry
private final java.util.Map<java.lang.String,groovyx.gpars.group.PGroup> registry
ActiveObjectRegistry
private ActiveObjectRegistry()
getInstance
public static ActiveObjectRegistry getInstance()
findGroupById
public groovyx.gpars.group.PGroup findGroupById(java.lang.String groupId)
register
public void register(java.lang.String groupId,
groovyx.gpars.group.PGroup group)