Search in sources :

Example 1 with AnnotationDrivenEntitySchemaFactory

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());
}
Also used : AnnotationDrivenEntitySchemaFactory(org.onebusaway.csv_entities.schema.AnnotationDrivenEntitySchemaFactory) CsvEntityReader(org.onebusaway.csv_entities.CsvEntityReader)

Example 2 with AnnotationDrivenEntitySchemaFactory

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());
}
Also used : AnnotationDrivenEntitySchemaFactory(org.onebusaway.csv_entities.schema.AnnotationDrivenEntitySchemaFactory) CsvEntityReader(org.onebusaway.csv_entities.CsvEntityReader)

Aggregations

CsvEntityReader (org.onebusaway.csv_entities.CsvEntityReader)2 AnnotationDrivenEntitySchemaFactory (org.onebusaway.csv_entities.schema.AnnotationDrivenEntitySchemaFactory)2