org.cybertory.MSS
Class ArgsExternalDataFactory

java.lang.Object
  extended byorg.cybertory.MSS.ArgsExternalDataFactory
All Implemented Interfaces:
ExternalDataFactory

public class ArgsExternalDataFactory
extends java.lang.Object
implements ExternalDataFactory

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


Constructor Summary
ArgsExternalDataFactory(java.util.HashMap dMap, java.lang.String dataFile)
           
 
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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgsExternalDataFactory

public ArgsExternalDataFactory(java.util.HashMap dMap,
                               java.lang.String dataFile)
                        throws ExternalDataException
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