Class QuerydslPredicateArgumentResolver
java.lang.Object
org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolverSupport
org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
public class QuerydslPredicateArgumentResolver
extends QuerydslPredicateArgumentResolverSupport
implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to allow injection of Predicate
into Spring MVC
controller methods.- Since:
- 1.11
- Author:
- Christoph Strobl, Oliver Gierke, MatÃas Hermosilla, Mark Paluch
-
Field Summary
Fields inherited from class org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolverSupport
bindingsFactory, predicateBuilder
-
Constructor Summary
ConstructorDescriptionQuerydslPredicateArgumentResolver
(QuerydslBindingsFactory factory, Optional<ConversionService> conversionService) Create a newQuerydslPredicateArgumentResolver
.QuerydslPredicateArgumentResolver
(QuerydslBindingsFactory factory, ConversionService conversionService) Create a newQuerydslPredicateArgumentResolver
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Methods inherited from class org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolverSupport
extractTypeInfo, supportsParameter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.method.support.HandlerMethodArgumentResolver
supportsParameter
-
Constructor Details
-
QuerydslPredicateArgumentResolver
public QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory, Optional<ConversionService> conversionService) Create a newQuerydslPredicateArgumentResolver
.- Parameters:
factory
- theQuerydslBindingsFactory
to use, must not be null.conversionService
- the optionalConversionService
to use, must not be null. Defaults toDefaultConversionService
ifempty
.
-
QuerydslPredicateArgumentResolver
public QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory, ConversionService conversionService) Create a newQuerydslPredicateArgumentResolver
.- Parameters:
factory
- theQuerydslBindingsFactory
to use, must not be null.conversionService
- theConversionService
to use, must not be null.- Since:
- 2.5
-
-
Method Details
-
resolveArgument
@Nullable public Object resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Throws:
Exception
-