throw new TypeException("no such class " + c, e);
}
}
private void importLibs(final List<URL> urls) throws IOException {
final AnnotationDB db = new AnnotationDB();
db.setScanMethodAnnotations(true);
db.setScanClassAnnotations(true);
// let's assume the entire runtime is in the same classpath entry as the
// int sum aggregator
db.scanArchives(ClasspathUrlFinder.findClassBase(IntSumAggregator.class));
for (final URL s : ClasspathUrlFinder.findClassPaths())
if (s.getPath().endsWith("/"))
db.scanArchives(s);
for (final URL url : urls)
db.scanArchives(url);
final Map<String, Set<String>> annotationIndex = db.getAnnotationIndex();
for (final String c : annotationIndex.get(AggregatorSpec.class.getCanonicalName()))
try {
this.importAggregator(c);
} catch (final NoClassDefFoundError e) {