use of ch.ehi.ili2db.fromili.CustomMappingNull in project ili2db by claeis.
the class Ili2db method getCustomMappingStrategy.
private static CustomMapping getCustomMappingStrategy(ch.ehi.ili2db.gui.Config config) throws Ili2dbException {
String mappingClassName = config.getIli2dbCustomStrategy();
if (mappingClassName == null) {
return new CustomMappingNull();
}
CustomMapping mapping = null;
try {
mapping = (CustomMapping) Class.forName(mappingClassName).newInstance();
} catch (Exception ex) {
throw new Ili2dbException("failed to load/create custom mapping strategy", ex);
}
return mapping;
}
Aggregations