use of com.sun.jersey.core.spi.scanning.FilesScanner in project platformlayer by platformlayer.
the class JerseyAnnotationDiscovery method buildScanner.
private Scanner buildScanner(URLClassLoader classLoader) {
List<File> paths = Lists.newArrayList();
for (URL url : classLoader.getURLs()) {
if (!"file".equals(url.getProtocol())) {
continue;
}
paths.add(new File(url.getFile()));
}
Scanner scanner = new FilesScanner(paths.toArray(new File[paths.size()]));
return scanner;
}
Aggregations