protected static void loadMappings( ClassLoader cl, String path ) throws IOException { logger.log(Level.FINE, "Searching for mappings for path:{0}", path); for( Enumeration<URL> en = cl.getResources(path); en.hasMoreElements(); ) { URL u = en.nextElement(); try { loadMappingProperties(u); } catch( IOException e ) { logger.log(Level.SEVERE, "Error loading:" + u, e); } } }
protected static void loadMappings( ClassLoader cl, String path ) throws IOException { logger.log(Level.FINE, "Searching for mappings for path:{0}", path); for( Enumeration<URL> en = cl.getResources(path); en.hasMoreElements(); ) { URL u = en.nextElement(); try { loadMappingProperties(u); } catch( IOException e ) { logger.log(Level.SEVERE, "Error loading:" + u, e); } } }