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.Returns the documentation for the givenJavaPackage.static Optional<DocumentationSource>Creates a newDocumentationSourceif the backing metadata file (in "generated-spring-modulith/javadoc.json") is present.static StringReturns the location of the metadata file.
-
Method Details
-
getInstance
Creates a newDocumentationSourceif 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:DocumentationSourceReturns the documentation to be used for the givenJavaClass.- Specified by:
getDocumentationin interfaceDocumentationSource- Parameters:
type- must not be null.- Returns:
- will never be null.
-
getDocumentation
Description copied from interface:DocumentationSourceReturns the documentation to be used for the givenJavaMethod.- Specified by:
getDocumentationin interfaceDocumentationSource- Parameters:
method- must not be null.- Returns:
- will never be null.
-
getDocumentation
Description copied from interface:DocumentationSourceReturns the documentation for the givenJavaPackage.- Specified by:
getDocumentationin interfaceDocumentationSource- Parameters:
pkg- must not be null.- Returns:
- will never be null.
-