Class StandardMethodImplementor

java.lang.Object
io.quarkus.rest.data.panache.deployment.methods.StandardMethodImplementor
All Implemented Interfaces:
MethodImplementor
Direct Known Subclasses:
AddMethodImplementor, CountMethodImplementor, DeleteMethodImplementor, GetMethodImplementor, ListMethodImplementor, UpdateMethodImplementor

public abstract class StandardMethodImplementor extends Object implements MethodImplementor
A standard JAX-RS method implementor.
  • Field Details

  • Constructor Details

    • StandardMethodImplementor

      protected StandardMethodImplementor(io.quarkus.deployment.Capabilities capabilities)
  • Method Details

    • implement

      public void implement(io.quarkus.gizmo.ClassCreator classCreator, ResourceMetadata resourceMetadata, ResourceProperties resourceProperties, io.quarkus.gizmo.FieldDescriptor resourceField)
      Implement exposed JAX-RS method.
      Specified by:
      implement in interface MethodImplementor
    • implementInternal

      protected abstract void implementInternal(io.quarkus.gizmo.ClassCreator classCreator, ResourceMetadata resourceMetadata, ResourceProperties resourceProperties, io.quarkus.gizmo.FieldDescriptor resourceField)
      Implement the actual JAX-RS method logic.
    • getResourceMethodName

      protected abstract String getResourceMethodName()
      Get a name of a method which this controller uses to access data.
    • implementTryBlock

      protected io.quarkus.gizmo.TryBlock implementTryBlock(io.quarkus.gizmo.BytecodeCreator bytecodeCreator, String message)
    • addGetAnnotation

      protected void addGetAnnotation(io.quarkus.gizmo.AnnotatedElement element)
    • addPostAnnotation

      protected void addPostAnnotation(io.quarkus.gizmo.AnnotatedElement element)
    • addPutAnnotation

      protected void addPutAnnotation(io.quarkus.gizmo.AnnotatedElement element)
    • addDeleteAnnotation

      protected void addDeleteAnnotation(io.quarkus.gizmo.AnnotatedElement element)
    • addLinksAnnotation

      protected void addLinksAnnotation(io.quarkus.gizmo.AnnotatedElement element, ResourceProperties resourceProperties, String entityClassName, String rel)
    • addPathAnnotation

      protected void addPathAnnotation(io.quarkus.gizmo.AnnotatedElement element, String value)
    • addPathParamAnnotation

      protected void addPathParamAnnotation(io.quarkus.gizmo.AnnotatedElement element, String value)
    • addQueryParamAnnotation

      protected void addQueryParamAnnotation(io.quarkus.gizmo.AnnotatedElement element, String value)
    • addDefaultValueAnnotation

      protected void addDefaultValueAnnotation(io.quarkus.gizmo.AnnotatedElement element, String value)
    • addProducesJsonAnnotation

      protected void addProducesJsonAnnotation(io.quarkus.gizmo.AnnotatedElement element, ResourceProperties properties)
    • addProducesAnnotation

      protected void addProducesAnnotation(io.quarkus.gizmo.AnnotatedElement element, String... mediaTypes)
    • addConsumesAnnotation

      protected void addConsumesAnnotation(io.quarkus.gizmo.AnnotatedElement element, String... mediaTypes)
    • addContextAnnotation

      protected void addContextAnnotation(io.quarkus.gizmo.AnnotatedElement element)
    • addSortQueryParamValidatorAnnotation

      protected void addSortQueryParamValidatorAnnotation(io.quarkus.gizmo.AnnotatedElement element)
    • addMethodAnnotations

      protected void addMethodAnnotations(io.quarkus.gizmo.AnnotatedElement element, Collection<org.jboss.jandex.AnnotationInstance> methodAnnotations)
    • addSecurityAnnotations

      protected void addSecurityAnnotations(io.quarkus.gizmo.AnnotatedElement element, ResourceProperties resourceProperties)
    • addOpenApiResponseAnnotation

      protected void addOpenApiResponseAnnotation(io.quarkus.gizmo.AnnotatedElement element, jakarta.ws.rs.core.Response.Status status)
    • addOpenApiResponseAnnotation

      protected void addOpenApiResponseAnnotation(io.quarkus.gizmo.AnnotatedElement element, jakarta.ws.rs.core.Response.Status status, String entityType)
    • addOpenApiResponseAnnotation

      protected void addOpenApiResponseAnnotation(io.quarkus.gizmo.AnnotatedElement element, jakarta.ws.rs.core.Response.Status status, String entityType, boolean isList)
    • addOpenApiResponseAnnotation

      protected void addOpenApiResponseAnnotation(io.quarkus.gizmo.AnnotatedElement element, jakarta.ws.rs.core.Response.Status status, Class<?> clazz, boolean isList)
    • appendToPath

      protected String appendToPath(String path, String suffix)
    • hasSecurityCapability

      protected boolean hasSecurityCapability()
    • hasValidatorCapability

      protected boolean hasValidatorCapability()
    • isResteasyClassic

      protected boolean isResteasyClassic()
    • isNotReactivePanache

      protected boolean isNotReactivePanache()