Class Documenter.CanvasOptions
java.lang.Object
org.springframework.modulith.docs.Documenter.CanvasOptions
- Enclosing class:
- Documenter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Documenter.CanvasOptions.Grouping
-
Constructor Summary
ConstructorDescriptionCanvasOptions
(List<Documenter.CanvasOptions.Grouping> groupers, String apiBase, String targetFileName, boolean hideInternals, boolean hideEmptyLines) -
Method Summary
Modifier and TypeMethodDescriptionstatic Documenter.CanvasOptions
defaults()
Creates a defaultDocumenter.CanvasOptions
instance configuring componentDocumenter.CanvasOptions.Groupings
for jMolecules (if on the classpath) and Spring Framework.(package private) String
(package private) Documenter.CanvasOptions.Groupings
groupBeans
(ApplicationModule module) groupingBy
(String name, Predicate<SpringBean> filter) Registers a component grouping with the given name and selecting filter.groupingBy
(String name, Predicate<SpringBean> filter, String description) Registers a component grouping with the given name, selecting filter and description.groupingBy
(Documenter.CanvasOptions.Grouping... groupings) Creates a newDocumenter.CanvasOptions
with the givenDocumenter.CanvasOptions.Grouping
s added.(package private) Predicate<com.tngtech.archunit.core.domain.JavaClass>
hideInternalFilter
(ApplicationModule module) Enables table rows not containing any values to be retained in the output.Enables the inclusion of internal components in the module canvas.withApiBase
(String apiBase) Configures a URI string to act as the base of the Javadoc accessible for the types contained in the canvas.static Documenter.CanvasOptions
Creates aDocumenter.CanvasOptions
instance that does not register any default componentDocumenter.CanvasOptions.Grouping
s.withTargetFileName
(String targetFileName) Configures the target file name for the canvas to be written.
-
Field Details
-
FALLBACK_GROUP
-
-
Constructor Details
-
CanvasOptions
-
-
Method Details
-
defaults
Creates a defaultDocumenter.CanvasOptions
instance configuring componentDocumenter.CanvasOptions.Groupings
for jMolecules (if on the classpath) and Spring Framework. UsewithoutDefaultGroupings()
if you prefer to register componentDocumenter.CanvasOptions.Grouping
s yourself.- Returns:
- will never be null.
- See Also:
-
withoutDefaultGroupings
Creates aDocumenter.CanvasOptions
instance that does not register any default componentDocumenter.CanvasOptions.Grouping
s.- Returns:
- will never be null.
- See Also:
-
groupingBy
Creates a newDocumenter.CanvasOptions
with the givenDocumenter.CanvasOptions.Grouping
s added.- Parameters:
groupings
- must not be null.- Returns:
- will never be null.
-
groupingBy
Registers a component grouping with the given name and selecting filter.- Parameters:
name
- must not be null or empty.filter
- must not be null.- Returns:
- will never be null.
-
groupingBy
public Documenter.CanvasOptions groupingBy(String name, Predicate<SpringBean> filter, String description) Registers a component grouping with the given name, selecting filter and description.- Parameters:
name
- must not be null or empty.filter
- must not be null.description
- must not be null or empty.- Returns:
- will never be null.
-
revealInternals
Enables the inclusion of internal components in the module canvas.- Returns:
- will never be null.
-
revealEmptyLines
Enables table rows not containing any values to be retained in the output. By default, no table rows for e.g. aggregates will be rendered if none are found in theApplicationModule
.- Returns:
- will never be null.
-
withApiBase
Configures a URI string to act as the base of the Javadoc accessible for the types contained in the canvas. If set, the output will add links to the Javadoc for those types.- Parameters:
apiBase
- must not be null or empty.- Returns:
- will never be null.
-
withTargetFileName
Configures the target file name for the canvas to be written. Defaults tomodule-$moduleName.adoc
.- Parameters:
targetFileName
- must not be null or empty.- Returns:
- will never be null.
-
getApiBase
String getApiBase() -
groupBeans
-
hideInternalFilter
-