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, org.springframework.core.convert.ConversionService conversionService) Creates a newQuerydslPredicateArgumentResolver
using the givenConversionService
. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.boolean
supportsParameter
(org.springframework.core.MethodParameter parameter)
-
Field Details
-
bindingsFactory
-
predicateBuilder
-
-
Constructor Details
-
QuerydslPredicateArgumentResolverSupport
protected QuerydslPredicateArgumentResolverSupport(QuerydslBindingsFactory factory, org.springframework.core.convert.ConversionService conversionService) Creates a newQuerydslPredicateArgumentResolver
using the givenConversionService
.- 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 throughQuerydslPredicate.root()
but use the actual type of the method's return type as fallback.- Parameters:
parameter
- must not be null.- Returns:
-