use of org.onebusaway.csv_entities.schema.AnnotationDrivenEntitySchemaFactory in project onebusaway-application-modules by camsys.
the class OrbcadRecordFtpSource method setup.
/**
**
* Private Methods
***
*/
@Override
protected void setup() {
_reader = new CsvEntityReader();
AnnotationDrivenEntitySchemaFactory entitySchemaFactory = new AnnotationDrivenEntitySchemaFactory();
entitySchemaFactory.addEntityClass(OrbcadRecord.class);
_reader.setEntitySchemaFactory(entitySchemaFactory);
_reader.addEntityHandler(new RecordHandler());
}
use of org.onebusaway.csv_entities.schema.AnnotationDrivenEntitySchemaFactory in project onebusaway-application-modules by camsys.
the class OrbcadRecordHttpSource method setup.
/**
**
* Protected Methods
***
*/
protected void setup() {
_reader = new CsvEntityReader();
AnnotationDrivenEntitySchemaFactory entitySchemaFactory = new AnnotationDrivenEntitySchemaFactory();
entitySchemaFactory.addEntityClass(OrbcadRecord.class);
_reader.setEntitySchemaFactory(entitySchemaFactory);
_reader.addEntityHandler(new RecordHandler());
}
Aggregations