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
ConstructorsConstructorDescriptionCodeReplacingDocumentationSource(DocumentationSource delegate, Asciidoctor asciidoctor) Creates a newCodeReplacingDocumentationSourcefor the given delegateDocumentationSourceandAsciidoctorinstance. -
Method Summary
Modifier and TypeMethodDescriptiongetDocumentation(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 newCodeReplacingDocumentationSourcefor the given delegateDocumentationSourceandAsciidoctorinstance.- Parameters:
delegate- must not be null.asciidoctor- must not be null.
-
-
Method Details
-
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.
-