Class QuerydslPredicateArgumentResolverSupport

java.lang.Object
org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolverSupport
Direct Known Subclasses:
QuerydslPredicateArgumentResolver, ReactiveQuerydslPredicateArgumentResolver

public abstract class QuerydslPredicateArgumentResolverSupport extends Object
HandlerMethodArgumentResolver to allow injection of Predicate into Spring MVC controller methods.
Since:
2.5
Author:
Christoph Strobl, Oliver Gierke, Matías Hermosilla, Johannes Englmeier
  • Field Details

  • Constructor Details

    • QuerydslPredicateArgumentResolverSupport

      protected QuerydslPredicateArgumentResolverSupport(QuerydslBindingsFactory factory, org.springframework.core.convert.ConversionService conversionService)
      Creates a new QuerydslPredicateArgumentResolver using the given ConversionService.
      Parameters:
      factory -
      conversionService -
  • Method Details

    • supportsParameter

      public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
    • extractTypeInfo

      protected static TypeInformation<?> extractTypeInfo(org.springframework.core.MethodParameter parameter, org.springframework.core.annotation.MergedAnnotation<QuerydslPredicate> predicateAnnotation)
      Obtains the domain type information from the given method parameter. Will favor an explicitly registered on through QuerydslPredicate.root() but use the actual type of the method's return type as fallback.
      Parameters:
      parameter - must not be null.
      Returns: