* Overrides to return a custom converter locator which loads converters
* from the GeoToools converter subsystem.
*/
protected IConverterLocator newConverterLocator() {
// TODO: load converters from application context
ConverterLocator locator = new ConverterLocator();
locator.set(ReferencedEnvelope.class,
new GeoToolsConverterAdapter(new StringBBoxConverter(), ReferencedEnvelope.class)
);
DataDirectoryConverterLocator dd = new DataDirectoryConverterLocator(getResourceLoader());
locator.set(File.class, dd.getConverter(File.class));
locator.set(URI.class, dd.getConverter(URI.class));
locator.set(URL.class, dd.getConverter(URL.class));
return locator;
}