List<Bundle> bundles = findBundles(bundleNameFilter);
BundleClassesFinder classFinder = new BundleClassesFinder(bundles, basePackage);
classFinder.addFilter(new ClassFilter() {
@Override
public boolean accepts(ClassReader classReader) {
AnnotationReader annotationReader = new AnnotationReader();
classReader.accept(annotationReader, ClassReader.SKIP_DEBUG);
return annotationReader.isAnnotationPresent(SliceResource.class);
}
});
return classFinder.getClasses();
}