public class QuerydslPredicateArgumentResolver extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to allow injection of com.mysema.query.types.Predicate
into Spring MVC
controller methods.Constructor and Description |
---|
QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory,
ConversionService conversionService)
Creates a new
QuerydslPredicateArgumentResolver using the given ConversionService . |
Modifier and Type | Method and Description |
---|---|
com.querydsl.core.types.Predicate |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(MethodParameter parameter) |
public QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory, ConversionService conversionService)
QuerydslPredicateArgumentResolver
using the given ConversionService
.factory
- conversionService
- defaults to DefaultConversionService
if null.public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public com.querydsl.core.types.Predicate resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception
resolveArgument
in interface HandlerMethodArgumentResolver
Exception
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.