net.wgen.op.system
Class OpModuleRegistry

java.lang.Object
  extended bynet.wgen.op.system.OpModuleRegistry

public class OpModuleRegistry
extends java.lang.Object

Version:
$Id: OpModuleRegistry.html,v 1.2 2007/01/28 04:09:37 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.

Field Summary
private  java.util.Map _moduleRegistry
          Contains a mapping of name to WGApplication object.
private static OpModuleRegistry _self
          The singleton instance of the class.
 
Constructor Summary
private OpModuleRegistry()
          Private, no-arg constructor to limit creation to singleton accessor.
 
Method Summary
static OpModuleRegistry getInstance()
          The singleton accessor.
 OpModule getModuleByName(java.lang.String name)
          The application registered at the given name.
 java.util.Map getModuleRegistry()
           
 OpModule lookUpModule(java.lang.Class clazz)
           
 OpModule lookUpModule(java.lang.String url)
           
protected  void registerModule(OpModule module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_self

private static OpModuleRegistry _self
The singleton instance of the class.


_moduleRegistry

private java.util.Map _moduleRegistry
Contains a mapping of name to WGApplication object.

Constructor Detail

OpModuleRegistry

private OpModuleRegistry()
Private, no-arg constructor to limit creation to singleton accessor.

Method Detail

getInstance

public static OpModuleRegistry getInstance()
The singleton accessor.

Returns:
the singleton instance of this class

getModuleByName

public final OpModule getModuleByName(java.lang.String name)
The application registered at the given name.

Parameters:
name - the name of the application
Returns:
the application registered at the given name

lookUpModule

public final OpModule lookUpModule(java.lang.String url)
Parameters:
url -
Returns:
the application that claimed to the url

lookUpModule

public final OpModule lookUpModule(java.lang.Class clazz)
Parameters:
clazz -
Returns:
the application that claimed to the class

registerModule

protected final void registerModule(OpModule module)
Parameters:
module -

getModuleRegistry

public java.util.Map getModuleRegistry()
Returns:
a map of registered modules