Class AnnotationUtil

java.lang.Object
in.co.akshitbansal.springwebquery.util.AnnotationUtil

public class AnnotationUtil extends Object
Utility methods for resolving query-related annotations from controller metadata.
  • Constructor Details

    • AnnotationUtil

      public AnnotationUtil()
  • Method Details

    • resolveWebQueryFromParameter

      public static WebQuery resolveWebQueryFromParameter(@NonNull @NonNull org.springframework.core.MethodParameter parameter)
      Resolves WebQuery from the controller method that declares the provided Spring MVC method parameter.
      Parameters:
      parameter - controller method parameter currently being resolved
      Returns:
      resolved WebQuery annotation
      Throws:
      QueryConfigurationException - if the method cannot be resolved or is not annotated with WebQuery