Class QuerydslPredicateArgumentResolver
java.lang.Object
org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolverSupport
org.springframework.data.web.querydsl.QuerydslPredicateArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class QuerydslPredicateArgumentResolver
extends QuerydslPredicateArgumentResolverSupport
implements org.springframework.web.method.support.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<org.springframework.core.convert.ConversionService> conversionService) Create a newQuerydslPredicateArgumentResolver
.QuerydslPredicateArgumentResolver
(QuerydslBindingsFactory factory, org.springframework.core.convert.ConversionService conversionService) Create a newQuerydslPredicateArgumentResolver
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.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<org.springframework.core.convert.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, org.springframework.core.convert.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(org.springframework.core.MethodParameter parameter, @Nullable org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, @Nullable org.springframework.web.bind.support.WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
- Throws:
Exception
-