public class OpenApiProcessor extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.microprofile.openapi.models.OpenAPI |
bootstrap(org.jboss.jandex.IndexView index) |
static org.eclipse.microprofile.openapi.models.OpenAPI |
bootstrap(OpenApiConfig config,
org.jboss.jandex.IndexView index) |
static org.eclipse.microprofile.openapi.models.OpenAPI |
bootstrap(OpenApiConfig config,
org.jboss.jandex.IndexView index,
ClassLoader classLoader) |
static org.eclipse.microprofile.openapi.models.OpenAPI |
bootstrap(OpenApiConfig config,
org.jboss.jandex.IndexView index,
ClassLoader classLoader,
OpenApiStaticFile... staticFiles) |
static org.eclipse.microprofile.openapi.models.OpenAPI |
bootstrap(OpenApiConfig config,
org.jboss.jandex.IndexView index,
OpenApiStaticFile... staticFiles) |
static org.eclipse.microprofile.openapi.OASFilter |
getFilter(OpenApiConfig config,
ClassLoader loader)
Instantiate the
OASFilter configured by the app. |
static org.eclipse.microprofile.openapi.models.OpenAPI |
modelFromAnnotations(OpenApiConfig config,
ClassLoader loader,
org.jboss.jandex.IndexView index)
Create an
OpenAPI model by scanning the deployment for relevant JAX-RS and
OpenAPI annotations. |
static org.eclipse.microprofile.openapi.models.OpenAPI |
modelFromAnnotations(OpenApiConfig config,
org.jboss.jandex.IndexView index)
Create an
OpenAPI model by scanning the deployment for relevant JAX-RS and
OpenAPI annotations. |
static org.eclipse.microprofile.openapi.models.OpenAPI |
modelFromReader(OpenApiConfig config,
ClassLoader loader)
Instantiate the configured
OASModelReader and invoke it. |
static org.eclipse.microprofile.openapi.models.OpenAPI |
modelFromStaticFile(OpenApiStaticFile staticFile)
Parse the static file content and return the resulting model.
|
public static org.eclipse.microprofile.openapi.models.OpenAPI bootstrap(org.jboss.jandex.IndexView index)
public static org.eclipse.microprofile.openapi.models.OpenAPI bootstrap(OpenApiConfig config, org.jboss.jandex.IndexView index)
public static org.eclipse.microprofile.openapi.models.OpenAPI bootstrap(OpenApiConfig config, org.jboss.jandex.IndexView index, OpenApiStaticFile... staticFiles)
public static org.eclipse.microprofile.openapi.models.OpenAPI bootstrap(OpenApiConfig config, org.jboss.jandex.IndexView index, ClassLoader classLoader)
public static org.eclipse.microprofile.openapi.models.OpenAPI bootstrap(OpenApiConfig config, org.jboss.jandex.IndexView index, ClassLoader classLoader, OpenApiStaticFile... staticFiles)
public static org.eclipse.microprofile.openapi.models.OpenAPI modelFromStaticFile(OpenApiStaticFile staticFile)
staticFile - OpenApiStaticFile to be parsedpublic static org.eclipse.microprofile.openapi.models.OpenAPI 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 org.eclipse.microprofile.openapi.models.OpenAPI modelFromAnnotations(OpenApiConfig config, ClassLoader loader, 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 - OpenApiConfigloader - ClassLoaderindex - IndexView of Archivepublic static org.eclipse.microprofile.openapi.models.OpenAPI 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 OpenApiRuntimeException is thrown.config - OpenApiConfigloader - ClassLoaderpublic static org.eclipse.microprofile.openapi.OASFilter getFilter(OpenApiConfig config, ClassLoader loader)
OASFilter configured by the app.config - OpenApiConfigloader - ClassLoaderCopyright © 2018–2021. All rights reserved.