in src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoader.java [214:237]
public Enumeration<URL> findResources(final String name) {
if (!this.writer.isActivate()) {
logger.warn("Destroyed class loader cannot find a resources: " + name, new IllegalStateException());
return new Enumeration<URL>() {
public boolean hasMoreElements() {
return false;
}
public URL nextElement() {
throw new NoSuchElementException("No Entries");
}
};
}
logger.debug("findResources: Try to find resources for {}", name);
final URL url = this.findResource(name);
final List<URL> list = Collections.singletonList(url);
if (url != null) {
list.add(url);
}
// return the enumeration on the list
return Collections.enumeration(list);
}