org.cybertory.MSS
Class ExternalDataFactoryImpl

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.cybertory.MSS.ExternalDataFactoryImpl
All Implemented Interfaces:
java.lang.Cloneable, ExternalDataFactory, java.util.Map, java.io.Serializable
Direct Known Subclasses:
PropertiesListItem

public class ExternalDataFactoryImpl
extends java.util.Hashtable
implements ExternalDataFactory

An implementation of ExternalDataFactory that gets its data from the java command line.

See Also:
Serialized Form

Constructor Summary
ExternalDataFactoryImpl()
           
ExternalDataFactoryImpl(java.util.Map m)
           
 
Method Summary
 java.lang.Object getExternalData(java.lang.String key, java.lang.Class oType)
          Return a data object by key.
 
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
 

Constructor Detail

ExternalDataFactoryImpl

public ExternalDataFactoryImpl(java.util.Map m)

ExternalDataFactoryImpl

public ExternalDataFactoryImpl()
Method Detail

getExternalData

public java.lang.Object getExternalData(java.lang.String key,
                                        java.lang.Class oType)
                                 throws ExternalDataException
Return a data object by key.

Specified by:
getExternalData in interface ExternalDataFactory
Parameters:
key - string identifying the external data object of interest
oType - the expected data type for the object
Returns:
the object for the given key
Throws:
ExternalDataException