Class SpringAnnotationScanner

java.lang.Object
io.smallrye.openapi.runtime.scanner.spi.AbstractAnnotationScanner
io.smallrye.openapi.spring.SpringAnnotationScanner
All Implemented Interfaces:
io.smallrye.openapi.runtime.scanner.spi.AnnotationScanner

public class SpringAnnotationScanner extends io.smallrye.openapi.runtime.scanner.spi.AbstractAnnotationScanner
Scanner that scan Spring entry points.
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Field Summary

    Fields inherited from class io.smallrye.openapi.runtime.scanner.spi.AbstractAnnotationScanner

    context, currentAppPath
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsScannerAnnotations(Collection<org.jboss.jandex.AnnotationInstance> instances, List<io.smallrye.openapi.runtime.scanner.AnnotationScannerExtension> extensions)
     
     
    boolean
    isAsyncResponse(org.jboss.jandex.MethodInfo method)
     
    boolean
    isDeleteMethod(org.jboss.jandex.MethodInfo method)
     
    boolean
    isFrameworkContextType(org.jboss.jandex.Type type)
     
    boolean
    isMultipartInput(org.jboss.jandex.Type inputType)
     
    boolean
    isMultipartOutput(org.jboss.jandex.Type returnType)
     
    boolean
    isPostMethod(org.jboss.jandex.MethodInfo method)
     
    boolean
    isRequestBody(org.jboss.jandex.MethodParameterInfo mip)
     
    boolean
    isScannerInternalResponse(org.jboss.jandex.Type returnType)
     
    boolean
    isWrapperType(org.jboss.jandex.Type type)
     
    void
    processJavaSecurity(io.smallrye.openapi.runtime.scanner.spi.AnnotationScannerContext context, org.jboss.jandex.ClassInfo resourceClass, org.eclipse.microprofile.openapi.models.OpenAPI openApi)
     
    org.eclipse.microprofile.openapi.models.OpenAPI
    scan(io.smallrye.openapi.runtime.scanner.spi.AnnotationScannerContext context, org.eclipse.microprofile.openapi.models.OpenAPI openApi)
     

    Methods inherited from class io.smallrye.openapi.runtime.scanner.spi.AbstractAnnotationScanner

    createPathFromSegments, getDefaultConsumes, getDefaultProduces, makePath, makePaths, processProfiles, setContextRoot

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.smallrye.openapi.runtime.scanner.spi.AnnotationScanner

    addApiReponseSchemaFromAnnotation, clearJsonViewContext, createEmptyResponseContent, createResponseContentFromRestMethod, createResponseFromRestMethod, generateResponse, getConsumes, getConsumesForRequestBody, getDefaultStatus, getKotlinContinuationArgument, getProduces, getReasonPhrase, getRequestBodyParameterClassType, getResourceMethods, hasKotlinContinuation, hasResponseContent, isEmptySecurityRequirements, isKotlinContinuation, isPathParameter, isScannerInternalParameter, isScannerInternalResponse, isVoidResponse, isVoidType, kotlinContinuationToSchema, makeSchemaOptional, processCallback, processDefinitionAnnotation, processExtensions, processOperation, processOperationTags, processRequestBody, processResponse, processScannerExtensions, processSecurityRequirementAnnotation, processSecuritySchemeAnnotation, processServerAnnotation, processServerAnnotation, processTags, setJsonViewContext, setRequestBodyConstraints, unwrapType
  • Constructor Details

    • SpringAnnotationScanner

      public SpringAnnotationScanner()
  • Method Details

    • getName

      public String getName()
    • isWrapperType

      public boolean isWrapperType(org.jboss.jandex.Type type)
    • isAsyncResponse

      public boolean isAsyncResponse(org.jboss.jandex.MethodInfo method)
    • isPostMethod

      public boolean isPostMethod(org.jboss.jandex.MethodInfo method)
    • isDeleteMethod

      public boolean isDeleteMethod(org.jboss.jandex.MethodInfo method)
    • isScannerInternalResponse

      public boolean isScannerInternalResponse(org.jboss.jandex.Type returnType)
    • isMultipartOutput

      public boolean isMultipartOutput(org.jboss.jandex.Type returnType)
    • isMultipartInput

      public boolean isMultipartInput(org.jboss.jandex.Type inputType)
    • isFrameworkContextType

      public boolean isFrameworkContextType(org.jboss.jandex.Type type)
    • containsScannerAnnotations

      public boolean containsScannerAnnotations(Collection<org.jboss.jandex.AnnotationInstance> instances, List<io.smallrye.openapi.runtime.scanner.AnnotationScannerExtension> extensions)
    • scan

      public org.eclipse.microprofile.openapi.models.OpenAPI scan(io.smallrye.openapi.runtime.scanner.spi.AnnotationScannerContext context, org.eclipse.microprofile.openapi.models.OpenAPI openApi)
    • processJavaSecurity

      public void processJavaSecurity(io.smallrye.openapi.runtime.scanner.spi.AnnotationScannerContext context, org.jboss.jandex.ClassInfo resourceClass, org.eclipse.microprofile.openapi.models.OpenAPI openApi)
    • isRequestBody

      public boolean isRequestBody(org.jboss.jandex.MethodParameterInfo mip)