setting = INITIALIZATION_MODE_AUTO;
}
}
if (INITIALIZATION_MODE_AUTO.equalsIgnoreCase(setting)) {
final ExternalResourceAutoLocator loader = new ExternalResourceAutoLocator();
dispatchAllImportInstructions(new ImportInstructionDispatcher() {
public Object dispatch(ImportDirectoryInstruction instr) {
String directory = instr.getDirectory();
if (directory != null && directory.length() > 0)
loader.addImportedPath(directory);
return null;
}});
mapper.loadMappings(loader.load(baseDir));
// NOTE: this style of resource mapping is not supported by the
// "default map data source" functionality at this time.
}
}