public T createDataLine(){
  try {
    T dl=_dataLineClass.newInstance();
    return dl;
  }
 catch (  IllegalAccessException e) {
    throw new RuntimeException(e);
  }
catch (  InstantiationException e) {
    throw new RuntimeException(e);
  }
catch (  ClassCastException e) {
    throw new RuntimeException(e);
  }
}

public T createDataLine ( ) { try { T dl = _dataLineClass . newInstance ( ) ; return dl ; } catch ( IllegalAccessException e ) { throw new RuntimeException ( e ) ; } catch ( InstantiationException e ) { throw new RuntimeException ( e ) ; } catch ( ClassCastException e ) { throw new RuntimeException ( e ) ; } }
instantiates a dataline . this uses reflection to create an instance of the dataline class . the datalineclass class is used to determine which class should be created . failure to create results in assertfailures . extending classes should override this to change the way dataline ' s are instantiated .
