GH-37 - Hide internal aggregates and components by default in module canvas.

We now only include exposed types in the module canvas rendered. This can be overridden by calling CanvasOptions.revealInternals().
This commit is contained in:
Oliver Drotbohm
2022-09-12 15:22:05 +02:00
parent 0fbf7b33b1
commit bdb90e9298
4 changed files with 40 additions and 13 deletions

View File

@@ -46,6 +46,16 @@ public class SpringBean {
return type.getFullName();
}
/**
* Returns whether the bean is considered to be an API bean, which means it is either a public type exposed in an API
* package of the module or implements a public API interface.
*
* @return
*/
public boolean isApiBean() {
return module.isExposed(type) || !getInterfacesWithinModule().isEmpty();
}
/**
* Returns all interfaces implemented by the bean that are part of the same module.
*