protected Iterator<URL> getConfigurationUrls(String fileName) throws IOException { return ClassLoaderUtil.getResources(fileName, XmlConfigurationProvider.class, false); }
public Iterator<URL> getPluginsLoaded() { try { return ClassLoaderUtil.getResources("struts-plugin.xml", ShowJarsAction.class, false); } catch (IOException e) { LOG.error("Cannot load struts-plugin.xml", e); } return null; }
return getResources('/' + resourceName, callingClass, aggregate);
try { Iterator<URL> urls = ClassLoaderUtil.getResources("", DefaultValidatorFactory.class, false); while (urls.hasNext()) { URL u = urls.next();
public void loadConversionProperties(String propsName, boolean require) { try { Iterator<URL> resources = ClassLoaderUtil.getResources(propsName, getClass(), true); while (resources.hasNext()) { URL url = resources.next();