Class ModRegistry

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--ModRegistry
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public final class ModRegistry
extends java.util.HashMap

This class is used to register the modules.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
ModRegistry()
           
 
Method Summary
 java.util.List getModForType(java.lang.Class type)
          This method returns the List object that contains the ModSpec objects related to this type.
 void registerModule(ModSpec spec)
          This method registers the Module if it has not already been registered.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ModRegistry

public ModRegistry()
Method Detail

registerModule

public void registerModule(ModSpec spec)
This method registers the Module if it has not already been registered.


getModForType

public java.util.List getModForType(java.lang.Class type)
This method returns the List object that contains the ModSpec objects related to this type.

Returns:
List returns the list of ModSpec objects related to type.