org.finetracker
Class DistanceCalculationLoader

java.lang.Object
  extended by org.finetracker.DistanceCalculationLoader

public class DistanceCalculationLoader
extends java.lang.Object

This class loads classes that implement the DistanceCalculation interface. It only has one static public method, which gets a filename as parameter, and returns a DistanceCalculation object.

Author:
Frank Kusters

Constructor Summary
DistanceCalculationLoader()
           
 
Method Summary
static DistanceCalculation load(java.lang.String filename)
          Loads classes that implement the DistanceCalculation interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistanceCalculationLoader

public DistanceCalculationLoader()
Method Detail

load

public static DistanceCalculation load(java.lang.String filename)
                                throws java.io.IOException
Loads classes that implement the DistanceCalculation interface. It gets a filename as parameter, and returns a DistanceCalculation object.

Parameters:
filename - the class to load
Returns:
a DistanceCalculation object
Throws:
java.io.IOException - if the class could not be compiled