public abstract class QuerydslPredicateArgumentResolverSupport extends Object
HandlerMethodArgumentResolver
to allow injection of Predicate
into Spring MVC
controller methods.Modifier and Type | Field and Description |
---|---|
protected QuerydslBindingsFactory |
bindingsFactory |
protected QuerydslPredicateBuilder |
predicateBuilder |
Modifier | Constructor and Description |
---|---|
protected |
QuerydslPredicateArgumentResolverSupport(QuerydslBindingsFactory factory,
ConversionService conversionService)
Creates a new
QuerydslPredicateArgumentResolver using the given ConversionService . |
Modifier and Type | Method and Description |
---|---|
protected static TypeInformation<?> |
extractTypeInfo(MethodParameter parameter,
MergedAnnotation<QuerydslPredicate> predicateAnnotation)
Obtains the domain type information from the given method parameter.
|
boolean |
supportsParameter(MethodParameter parameter) |
protected final QuerydslBindingsFactory bindingsFactory
protected final QuerydslPredicateBuilder predicateBuilder
protected QuerydslPredicateArgumentResolverSupport(QuerydslBindingsFactory factory, ConversionService conversionService)
QuerydslPredicateArgumentResolver
using the given ConversionService
.factory
- conversionService
- public boolean supportsParameter(MethodParameter parameter)
protected static TypeInformation<?> extractTypeInfo(MethodParameter parameter, MergedAnnotation<QuerydslPredicate> predicateAnnotation)
QuerydslPredicate.root()
but use the actual type of the method's return type as fallback.parameter
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.