public static Iterable<URL> getResources(Class<?> clazz, String name) { if (name.startsWith("/")) { name = name.substring(1); } else { name = clazz.getPackage().getName().replace(".", "/") + "/" + name; } try { return new EnumerationList<>(clazz.getClassLoader().getResources(name)); } catch (IOException e) { throw new RuntimeException("Error loading resource from classloader" + name, e); } }
public Collection<URL> getResources(String name) { try { return new EnumerationList<URL>(Thread.currentThread().getContextClassLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException(e); } }
public Collection<URL> getResources(String name) { try { return new EnumerationList<URL>(Thread.currentThread().getContextClassLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException(e); } }
@Override public Collection<URL> getResources(String name) { try { return new EnumerationList<URL>(classLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException("Error loading resource " + name, e); } }
@Override public Collection<URL> getResources(String name) { try { return new EnumerationList<>(classLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException("Error loading resource " + name, e); } }
@Override public Collection<URL> getResources(String name) { try { return new EnumerationList<>(classLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException("Error loading resource " + name, e); } }
@Override public Collection<URL> getResources(String name) { try { return new EnumerationList<>(classLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException("Error loading resource " + name, e); } }
@Override public Collection<URL> getResources(String name) { try { return new EnumerationList<>(classLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException("Error loading resource " + name, e); } }
@Override public Collection<URL> getResources(String name) { try { return new EnumerationList<>(classLoader().getResources(name)); } catch (IOException e) { throw new ResourceLoadingException("Error loading resource " + name, e); } }