/** Find all resource URLs for the given name. This overrides the * URLClassLoader version to look for resources in the repository. * * @param name the name of the resource * @return Enumeration<URL> * @throws java.io.IOException */ public Enumeration findResources(String name) throws IOException { Vector resURLs = new Vector(); if( repository == null ) { String msg = "Invalid use of destroyed classloader, UCL destroyed at:"; IOException e = new IOException(msg); e.initCause(this.unregisterTrace); throw e; } repository.getResources(name, this, resURLs); return resURLs.elements(); }
/** Find all resource URLs for the given name. This overrides the * URLClassLoader version to look for resources in the repository. * * @param name the name of the resource * @return Enumeration<URL> * @throws java.io.IOException */ public Enumeration<URL> findResources(String name) throws IOException { Vector<URL> resURLs = new Vector<URL>(); if( repository == null ) { String msg = "Invalid use of destroyed classloader, UCL destroyed at:"; IOException e = new IOException(msg); e.initCause(this.unregisterTrace); throw e; } repository.getResources(name, this, resURLs); return resURLs.elements(); }