Class OpenApiAnnotationScanner

java.lang.Object
io.smallrye.openapi.runtime.scanner.OpenApiAnnotationScanner

@Deprecated public class OpenApiAnnotationScanner extends Object
Deprecated.
use the SmallRyeOpenAPI builder API instead. This class may be moved, have reduced visibility, or be removed in a future release.
Scans a deployment (using the archive and jandex annotation index) for OpenAPI annotations. Also delegate to all other scanners. These annotations, if found, are used to generate a valid OpenAPI model. For reference, see: https://github.com/eclipse/microprofile-open-api/blob/master/spec/src/main/asciidoc/microprofile-openapi-spec.adoc#annotations
Author:
[email protected]
  • Constructor Details

    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(OpenApiConfig config, org.jboss.jandex.IndexView index)
      Deprecated.
      Constructor.
      Parameters:
      config - OpenApiConfig instance
      index - IndexView of deployment
    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(OpenApiConfig config, org.jboss.jandex.IndexView index, List<AnnotationScannerExtension> extensions)
      Deprecated.
      Constructor.
      Parameters:
      config - OpenApiConfig instance
      index - IndexView of deployment
      extensions - A set of extensions to scanning
    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(OpenApiConfig config, org.jboss.jandex.IndexView index, List<AnnotationScannerExtension> extensions, boolean addDefaultExtension)
      Deprecated.
      Constructor.
      Parameters:
      config - OpenApiConfig instance
      index - IndexView of deployment
      extensions - A set of extensions to scanning
    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(OpenApiConfig config, ClassLoader loader, org.jboss.jandex.IndexView index)
      Deprecated.
      Constructor.
      Parameters:
      config - OpenApiConfig instance
      loader - ClassLoader to discover AnnotationScanner services (via ServiceLoader) as well as loading application classes
      index - IndexView of deployment
    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(OpenApiConfig config, ClassLoader loader, org.jboss.jandex.IndexView index, List<AnnotationScannerExtension> extensions)
      Deprecated.
      Constructor.
      Parameters:
      config - OpenApiConfig instance
      loader - ClassLoader to discover AnnotationScanner services (via ServiceLoader) as well as loading application classes
      index - IndexView of deployment
      extensions - A set of extensions to scanning
    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(OpenApiConfig config, ClassLoader loader, org.jboss.jandex.IndexView index, Supplier<Iterable<AnnotationScanner>> scannerSupplier)
      Deprecated.
    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(OpenApiConfig config, ClassLoader loader, org.jboss.jandex.IndexView index, Supplier<Iterable<AnnotationScanner>> scannerSupplier, List<AnnotationScannerExtension> extensions)
      Deprecated.
      Constructor.
      Parameters:
      config - OpenApiConfig instance
      loader - ClassLoader to load application classes
      index - IndexView of deployment
      scannerSupplier - supplier of AnnotationScanner instances to use to generate the OpenAPI model for the application
      extensions - A set of extensions to scanning
    • OpenApiAnnotationScanner

      public OpenApiAnnotationScanner(AnnotationScannerContext context, Supplier<Iterable<AnnotationScanner>> scannerSupplier)
      Deprecated.
  • Method Details

    • scan

      public org.eclipse.microprofile.openapi.models.OpenAPI scan(String... filter)
      Deprecated.
      Scan the deployment for relevant annotations. Returns an OpenAPI data model that was built from those found annotations.
      Parameters:
      filter - Filter to only include certain scanners. Based on the scanner name. (JAX-RS, Spring, Vert.x)
      Returns:
      OpenAPI generated from scanning annotations
    • scan

      public org.eclipse.microprofile.openapi.models.OpenAPI scan(Predicate<String> filter)
      Deprecated.
      Scan the deployment for relevant annotations. Returns an OpenAPI data model that was built from those found annotations.
      Parameters:
      filter - Predicate to only include certain scanners. Based on the scanner name. (JAX-RS, Spring, Vert.x)
      Returns:
      OpenAPI generated from scanning annotations