Class QuerydslPredicateArgumentResolverSupport
java.lang.Object
org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolverSupport
- Direct Known Subclasses:
QuerydslPredicateArgumentResolver
,ReactiveQuerydslPredicateArgumentResolver
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 Summary
Modifier and TypeFieldDescriptionprotected final QuerydslBindingsFactory
protected final QuerydslPredicateBuilder
-
Constructor Summary
ModifierConstructorDescriptionprotected
QuerydslPredicateArgumentResolverSupport
(QuerydslBindingsFactory factory, ConversionService conversionService) Creates a newQuerydslPredicateArgumentResolver
using the givenConversionService
. -
Method Summary
Modifier and TypeMethodDescriptionprotected static TypeInformation<?>
extractTypeInfo
(MethodParameter parameter, MergedAnnotation<QuerydslPredicate> predicateAnnotation) Obtains the domain type information from the given method parameter.boolean
supportsParameter
(MethodParameter parameter)
-
Field Details
-
bindingsFactory
-
predicateBuilder
-
-
Constructor Details
-
QuerydslPredicateArgumentResolverSupport
protected QuerydslPredicateArgumentResolverSupport(QuerydslBindingsFactory factory, ConversionService conversionService) Creates a newQuerydslPredicateArgumentResolver
using the givenConversionService
.- Parameters:
factory
-conversionService
-
-
-
Method Details
-
supportsParameter
-
extractTypeInfo
protected static TypeInformation<?> extractTypeInfo(MethodParameter parameter, MergedAnnotation<QuerydslPredicate> predicateAnnotation) Obtains the domain type information from the given method parameter. Will favor an explicitly registered on throughQuerydslPredicate.root()
but use the actual type of the method's return type as fallback.- Parameters:
parameter
- must not be null.- Returns:
-