org.codehaus.gpars

groovyx.gpars.activeobject
[Java] Class ActiveObjectRegistry

java.lang.Object
  groovyx.gpars.activeobject.ActiveObjectRegistry

@SuppressWarnings({"Singleton"})
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.

Authors:
Vaclav Pech


Field Summary
private static ActiveObjectRegistry ourInstance

private java.util.Map registry

 
Constructor Summary
private ActiveObjectRegistry()

 
Method Summary
PGroup findGroupById(java.lang.String groupId)

static ActiveObjectRegistry getInstance()

void register(java.lang.String groupId, PGroup group)

 
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()
 

Field Detail

ourInstance

private static final ActiveObjectRegistry ourInstance


registry

private final java.util.Map registry


 
Constructor Detail

ActiveObjectRegistry

private ActiveObjectRegistry()


 
Method Detail

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–2010 Václav Pech. All Rights Reserved.