Commit 4e0c4867 authored by Mario Teixeira Parente's avatar Mario Teixeira Parente
Browse files

Add method for finding all concrete data processor classes

parent 6687d764
......@@ -52,6 +52,13 @@ public class ClassFinder {
.collect(Collectors.toList());
}
public static List<Class<?>> getAllProcessorClasses() {
return findSubclassesInPackage(DataProcessor.class.getPackage().getName(), DataProcessor.class)
.stream()
.filter(cproc -> !Modifier.isAbstract(cproc.getModifiers()))
.collect(Collectors.toList());
}
private static List<String> getClassNamesWithTagInPackage(String packageName, Class<?> baseClassOrInterface) {
return findSubclassesInPackage(packageName, baseClassOrInterface).stream()
.map(Class::getName)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment