groovyx.gpars.activeobject
[Java] Class ActiveObjectRegistry
java.lang.Object
groovyx.gpars.activeobject.ActiveObjectRegistry
@SuppressWarnings({"Singleton"})
public final class ActiveObjectRegistry
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.
- Authors:
- Vaclav Pech
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
ourInstance
private static final ActiveObjectRegistry ourInstance
-
registry
private final java.util.Map registry
-
ActiveObjectRegistry
private ActiveObjectRegistry()
-
findGroupById
public PGroup findGroupById(java.lang.String groupId)
-
getInstance
public static ActiveObjectRegistry getInstance()
-
register
public void register(java.lang.String groupId, PGroup group)
-
Copyright © 2008–2012 Václav Pech. All Rights Reserved.