public class QuerydslPredicateArgumentResolver extends QuerydslPredicateArgumentResolverSupport implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to allow injection of Predicate
into Spring MVC
controller methods.bindingsFactory, predicateBuilder
Constructor and Description |
---|
QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory,
ConversionService conversionService)
Create a new
QuerydslPredicateArgumentResolver . |
QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory,
Optional<ConversionService> conversionService)
Create a new
QuerydslPredicateArgumentResolver . |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
extractTypeInfo, supportsParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsParameter
public QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory, Optional<ConversionService> conversionService)
QuerydslPredicateArgumentResolver
.factory
- the QuerydslBindingsFactory
to use, must not be null.conversionService
- the optional ConversionService
to use, must not be null. Defaults to
DefaultConversionService
if empty
.public QuerydslPredicateArgumentResolver(QuerydslBindingsFactory factory, ConversionService conversionService)
QuerydslPredicateArgumentResolver
.factory
- the QuerydslBindingsFactory
to use, must not be null.conversionService
- the ConversionService
to use, must not be null.@Nullable public Object resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory) throws Exception
resolveArgument
in interface HandlerMethodArgumentResolver
Exception
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.