tempClassLoader = new JarFileClassLoader(null, urls, parentClassLoader);
List<Class<?>> classes = new ArrayList<Class<?>>();
for (URL url : urlList) {
try {
ClassFinder classFinder = new ClassFinder(tempClassLoader, Collections.singletonList(url));
classes.addAll(classFinder.findAnnotatedClasses(WebService.class));
classes.addAll(classFinder.findAnnotatedClasses(WebServiceProvider.class));
} catch (Exception e) {
logger.warn("Fail to search Web Service in jar [" + url + "]", e);
}
}