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