public class OpenApiAnnotationScanner extends Object
Constructor and Description |
---|
OpenApiAnnotationScanner(OpenApiConfig config,
org.jboss.jandex.IndexView index)
Constructor.
|
OpenApiAnnotationScanner(OpenApiConfig config,
org.jboss.jandex.IndexView index,
List<AnnotationScannerExtension> extensions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static String |
makePath(String... segments)
Make a path out of a number of path segments.
|
protected void |
processDefinition(OpenAPIImpl openApi,
org.jboss.jandex.AnnotationInstance definitionAnno)
Reads a OpenAPIDefinition annotation.
|
OpenAPIImpl |
scan()
Scan the deployment for relevant annotations.
|
void |
setCurrentAppPath(String path) |
public OpenApiAnnotationScanner(OpenApiConfig config, org.jboss.jandex.IndexView index)
config
- OpenApiConfig instanceindex
- IndexView of deploymentpublic OpenApiAnnotationScanner(OpenApiConfig config, org.jboss.jandex.IndexView index, List<AnnotationScannerExtension> extensions)
config
- OpenApiConfig instanceindex
- IndexView of deploymentextensions
- A set of extensions to scanningpublic OpenAPIImpl scan()
protected static String makePath(String... segments)
segments
- String pathsprotected void processDefinition(OpenAPIImpl openApi, org.jboss.jandex.AnnotationInstance definitionAnno)
openApi
- OpenAPIImpldefinitionAnno
- AnnotationInstancepublic void setCurrentAppPath(String path)
Copyright © 2018–2020. All rights reserved.