public class QuerydslPredicateArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to allow injection of com.mysema.query.types.Predicate
into Spring MVC
controller methods.Constructor and Description |
---|
QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory,
org.springframework.core.convert.ConversionService conversionService)
Creates a new
QuerydslPredicateArgumentResolver using the given ConversionService . |
Modifier and Type | Method and Description |
---|---|
com.querydsl.core.types.Predicate |
resolveArgument(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) |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
public QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory, org.springframework.core.convert.ConversionService conversionService)
QuerydslPredicateArgumentResolver
using the given ConversionService
.factory
- conversionService
- defaults to DefaultConversionService
if null.public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter
in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
public com.querydsl.core.types.Predicate resolveArgument(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) throws Exception
resolveArgument
in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
Exception
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.