S
- The concrete type of the SnippetConfigurer
.T
- The concrete type of this configurer, to be returned from methods that
support chainingpublic abstract class RestDocumentationConfigurer<S extends AbstractConfigurer,T> extends Object
Constructor and Description |
---|
RestDocumentationConfigurer() |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(Map<String,Object> configuration,
RestDocumentationContext context)
Applies this configurer to the given
configuration within the given
context . |
abstract S |
snippets()
Returns a
SnippetConfigurer that can be used to configure the snippets that
will be generated. |
T |
templateEngine(TemplateEngine templateEngine)
Configures the
TemplateEngine that will be used for snippet rendering. |
T |
writerResolver(WriterResolver writerResolver)
Configures the
WriterResolver that will be used to resolve a writer for a
snippet. |
public abstract S snippets()
SnippetConfigurer
that can be used to configure the snippets that
will be generated.public final T templateEngine(TemplateEngine templateEngine)
TemplateEngine
that will be used for snippet rendering.templateEngine
- the template engine to usethis
public final T writerResolver(WriterResolver writerResolver)
WriterResolver
that will be used to resolve a writer for a
snippet.writerResolver
- The writer resolver to usethis
protected final void apply(Map<String,Object> configuration, RestDocumentationContext context)
configuration
within the given
context
.configuration
- the configurationcontext
- the current context