I use org.reflections to find all classes in my package:
final Reflections reflections = new Reflections(new ConfigurationBuilder()
.setUrls(ClasspathHelper.forPackage("my.package"))
.setScanners(new SubTypesScanner(false), new TypeAnnotationsScanner())
.setExecutorService(Executors.newFixedThreadPool(4)));
final Set<Class<?>> classes = reflections.getSubTypesOf(Object.class);
Then I add it to the builder:
final ClassDiagramBuilder builder = new ClassDiagramBuilder();
classes.forEach(builder::addClasse);
I want to exclude a class such as:
final String diagram = builder.excludes("Wrap").build();
But the generated diagram still contains the Wrap class.
I use org.reflections to find all classes in my package:
Then I add it to the builder:
I want to exclude a class such as:
But the generated diagram still contains the
Wrap
class.