Class SpringModulithDocumentationSource
java.lang.Object
org.springframework.modulith.docs.SpringModulithDocumentationSource
- All Implemented Interfaces:
DocumentationSource
A
DocumentationSource
using metadata found in "generated-spring-modulith/javadoc.json", usually generated via
spring-modulith-apt
.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptiongetDocumentation
(com.tngtech.archunit.core.domain.JavaClass type) Returns the documentation to be used for the givenJavaClass
.getDocumentation
(com.tngtech.archunit.core.domain.JavaMethod method) Returns the documentation to be used for the givenJavaMethod
.static Optional<DocumentationSource>
Creates a newDocumentationSource
if the backing metadata file (in "generated-spring-modulith/javadoc.json") is present.static String
Returns the location of the metadata file.
-
Method Details
-
getInstance
Creates a newDocumentationSource
if the backing metadata file (in "generated-spring-modulith/javadoc.json") is present.- Returns:
- will never be null.
-
getMetadataLocation
Returns the location of the metadata file.- Returns:
- will never be null.
-
getDocumentation
Description copied from interface:DocumentationSource
Returns the documentation to be used for the givenJavaClass
.- Specified by:
getDocumentation
in interfaceDocumentationSource
- Parameters:
type
- must not be null.- Returns:
- will never be null.
-
getDocumentation
Description copied from interface:DocumentationSource
Returns the documentation to be used for the givenJavaMethod
.- Specified by:
getDocumentation
in interfaceDocumentationSource
- Parameters:
method
- must not be null.- Returns:
- will never be null.
-