com.pushtotest.tool.dataset
Class DatasetFactory

java.lang.Object
  extended by com.pushtotest.tool.dataset.DatasetFactory

public class DatasetFactory
extends java.lang.Object

The DatasetFactory instantiates clasess to chart data to the meters-and-charts panel in the TestMaker GUI.


Constructor Summary
DatasetFactory()
           
 
Method Summary
static Dataset getHandler(java.lang.String ds)
          Finds a class that implements the Dataset interface It uses the org/pushtotest/tool/resources/datasetops.properties by way of the PropertyFinder class to look up the class name.
static DatasetType getTypeHandler(java.lang.String ds)
          Finds a class that implements the presentation logic to output results data from a protocol handler into the desired target form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetFactory

public DatasetFactory()
Method Detail

getHandler

public static Dataset getHandler(java.lang.String ds)
                          throws NoSuchClassException
Finds a class that implements the Dataset interface It uses the org/pushtotest/tool/resources/datasetops.properties by way of the PropertyFinder class to look up the class name. It then calls the default constructor on that class and returns a new instance to the user.

Parameters:
protocol - The name of the protocol that will match an entry in the datasetops.properties file under the dataset property.
Returns:
The Dataset object that will handle the Response data.
Throws:
NoSuchClassException - If there is no Response class found that is associated with the provided protocol.

getTypeHandler

public static DatasetType getTypeHandler(java.lang.String ds)
                                  throws NoSuchClassException
Finds a class that implements the presentation logic to output results data from a protocol handler into the desired target form. It uses the datasetops.properties by way of the PropertyFinder class to look up the class name. It then calls the default constructor on that class and returns a new instance to the user.

Parameters:
protocol - The name of the protocol that will match an entry in the datasetops.properties file under the dataset property.
Returns:
The DatasetType object that will handle the response data.
Throws:
NoSuchClassException - If there is no Response class found that is associated with the provided protocol.