org.alicebot.server.core.util
Class ClassRegistry

java.lang.Object
  extended by java.util.Dictionary
      extended by java.util.Hashtable
          extended by org.alicebot.server.core.util.ClassRegistry
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map
Direct Known Subclasses:
AIMLProcessorRegistry, AliceChatListenerRegistry, StartupElementProcessorRegistry

public abstract class ClassRegistry
extends java.util.Hashtable

Registers classes with aliases.

See Also:
Serialized Form

Field Summary
protected static java.lang.String baseClassName
          The fully-qualified name of the base class for the classesToRegister.
protected static java.lang.String[] classesToRegister
          The list of classesToRegister (fully-qualified class names).
protected static java.lang.String version
          The version of the content type for which this registry is intended.
 
Constructor Summary
ClassRegistry(java.lang.String version, java.lang.String[] classesToRegister, java.lang.String baseClassName)
          Loads the registry with all classes.
 
Method Summary
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

version

protected static java.lang.String version
The version of the content type for which this registry is intended.


classesToRegister

protected static java.lang.String[] classesToRegister
The list of classesToRegister (fully-qualified class names).


baseClassName

protected static java.lang.String baseClassName
The fully-qualified name of the base class for the classesToRegister.

Constructor Detail

ClassRegistry

public ClassRegistry(java.lang.String version,
                     java.lang.String[] classesToRegister,
                     java.lang.String baseClassName)
Loads the registry with all classes.