Class CodeReplacingDocumentationSource
java.lang.Object
org.springframework.modulith.docs.CodeReplacingDocumentationSource
- All Implemented Interfaces:
DocumentationSource
A
DocumentationSource
that replaces {@code …} or {@link …} blocks into inline code
references- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorDescriptionCodeReplacingDocumentationSource
(DocumentationSource delegate, Asciidoctor asciidoctor) Creates a newCodeReplacingDocumentationSource
for the given delegateDocumentationSource
andAsciidoctor
instance. -
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
.
-
Constructor Details
-
CodeReplacingDocumentationSource
CodeReplacingDocumentationSource(DocumentationSource delegate, Asciidoctor asciidoctor) Creates a newCodeReplacingDocumentationSource
for the given delegateDocumentationSource
andAsciidoctor
instance.- Parameters:
delegate
- must not be null.asciidoctor
- must not be null.
-
-
Method Details
-
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.
-
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.
-