Class Documenter.CanvasOptions.Grouping
java.lang.Object
org.springframework.modulith.docs.Documenter.CanvasOptions.Grouping
- Enclosing class:
- Documenter.CanvasOptions
-
Method Summary
Modifier and TypeMethodDescriptionReturns the description of theDocumenter.CanvasOptions.Grouping.getName()Returns the name of theDocumenter.CanvasOptions.Grouping.static Predicate<SpringBean>implementing(Class<?> type) Helper method to create aPredicateforSpringBeans implementing the given interface.booleanmatches(SpringBean candidate) Returns whether the givenSpringBeanmatches theDocumenter.CanvasOptions.Grouping.static Predicate<SpringBean>nameMatching(String pattern) Helper method to create aPredicateforSpringBeans matching the given name pattern.Deprecated.of(String name, Predicate<SpringBean> predicate) Creates aDocumenter.CanvasOptions.Groupingwith the given name and selectingPredicate.of(String name, Predicate<SpringBean> predicate, String description) Creates aDocumenter.CanvasOptions.Groupingwith the given name, selectingPredicateand description.static Predicate<SpringBean>Helper method to create aPredicateforSpringBeans that are a subtype of the given one.
-
Method Details
-
of
Deprecated.no replacement as a name-onlyDocumenter.CanvasOptions.Groupingdoesn't make any sense in the first place.Creates aDocumenter.CanvasOptions.Groupingwith the given name.- Parameters:
name- must not be null or empty.- Returns:
- will never be null.
-
of
Creates aDocumenter.CanvasOptions.Groupingwith the given name and selectingPredicate.- Parameters:
name- must not be null or empty.predicate- must not be null.- Returns:
- will never be null.
-
of
public static Documenter.CanvasOptions.Grouping of(String name, Predicate<SpringBean> predicate, String description) Creates aDocumenter.CanvasOptions.Groupingwith the given name, selectingPredicateand description.- Parameters:
name- must not be null or empty.predicate- must not be null.description- must not be null or empty.- Returns:
- will never be null.
-
nameMatching
Helper method to create aPredicateforSpringBeans matching the given name pattern.- Parameters:
pattern- must not be null or empty.- Returns:
- will never be null.
-
implementing
Helper method to create aPredicateforSpringBeans implementing the given interface.- Parameters:
type- must not be null.- Returns:
- will never be null.
-
subtypeOf
Helper method to create aPredicateforSpringBeans that are a subtype of the given one. In other words, implement or extend it but are not the type itself.- Parameters:
type- must not be null.- Returns:
- will never be null.
-
getName
Returns the name of theDocumenter.CanvasOptions.Grouping.- Returns:
- will never be null or empty.
-
getDescription
Returns the description of theDocumenter.CanvasOptions.Grouping.- Returns:
- can be null.
-
matches
Returns whether the givenSpringBeanmatches theDocumenter.CanvasOptions.Grouping.- Parameters:
candidate- must not be null.
-
Documenter.CanvasOptions.Groupingdoesn't make any sense in the first place.