public class OpenApiProcessor extends Object
| Constructor and Description |
|---|
OpenApiProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.microprofile.openapi.OASFilter |
getFilter(OpenApiConfig config,
ClassLoader loader)
Instantiate the
OASFilter configured by the app. |
static OpenAPIImpl |
modelFromAnnotations(OpenApiConfig config,
org.jboss.jandex.IndexView index)
Create an
OpenAPI model by scanning the deployment for relevant JAX-RS and
OpenAPI annotations. |
static OpenAPIImpl |
modelFromReader(OpenApiConfig config,
ClassLoader loader)
Instantiate the configured
OASModelReader and invoke it. |
static OpenAPIImpl |
modelFromStaticFile(OpenApiStaticFile staticFile)
Parse the static file content and return the resulting model.
|
public static OpenAPIImpl modelFromStaticFile(OpenApiStaticFile staticFile)
staticFile - OpenApiStaticFile to be parsedpublic static OpenAPIImpl modelFromAnnotations(OpenApiConfig config, org.jboss.jandex.IndexView index)
OpenAPI model by scanning the deployment for relevant JAX-RS and
OpenAPI annotations. If scanning is disabled, this method returns null. If scanning
is enabled but no relevant annotations are found, an empty OpenAPI model is returned.config - OpenApiConfigindex - IndexView of Archivepublic static OpenAPIImpl modelFromReader(OpenApiConfig config, ClassLoader loader)
OASModelReader and invoke it. If no reader is configured,
then return null. If a class is configured but there is an error either instantiating or invoking
it, a RuntimeException is thrown.config - OpenApiConfigloader - ClassLoaderpublic static org.eclipse.microprofile.openapi.OASFilter getFilter(OpenApiConfig config, ClassLoader loader)
OASFilter configured by the app.config - OpenApiConfigloader - ClassLoaderCopyright © 2019. All rights reserved.