Class RsqlSpecArgumentResolver
java.lang.Object
in.co.akshitbansal.springwebquery.resolver.RsqlSpecArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
- Direct Known Subclasses:
DtoAwareRsqlSpecArgumentResolver,EntityAwareRsqlSpecArgumentResolver
public abstract class RsqlSpecArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
Base
HandlerMethodArgumentResolver for resolving RSQL-based
Specification parameters.
This class initializes a parser constrained to the configured default and
custom operators, and adapts custom operators into
RSQLCustomPredicate instances accepted by the underlying
rsql-jpa integration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotationUtilUtility for annotation resolution and validation support in subclasses.protected final List<io.github.perplexhub.rsql.RSQLCustomPredicate<?>> Custom predicates adapted forrsql-jpaspecification conversion.protected final cz.jirutka.rsql.parser.RSQLParserParser configured with the allowed default and custom comparison operators. -
Constructor Summary
ConstructorsConstructorDescriptionRsqlSpecArgumentResolver(Set<RsqlOperator> defaultOperators, Set<? extends RsqlCustomOperator<?>> customOperators, AnnotationUtil annotationUtil) Creates the resolver base with parser and predicate configuration. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.method.support.HandlerMethodArgumentResolver
resolveArgument, supportsParameter
-
Field Details
-
rsqlParser
protected final cz.jirutka.rsql.parser.RSQLParser rsqlParserParser configured with the allowed default and custom comparison operators. -
customPredicates
Custom predicates adapted forrsql-jpaspecification conversion. -
annotationUtil
Utility for annotation resolution and validation support in subclasses.
-
-
Constructor Details
-
RsqlSpecArgumentResolver
public RsqlSpecArgumentResolver(Set<RsqlOperator> defaultOperators, Set<? extends RsqlCustomOperator<?>> customOperators, AnnotationUtil annotationUtil) Creates the resolver base with parser and predicate configuration.- Parameters:
defaultOperators- built-in operators accepted by the parsercustomOperators- custom operators to register for parsing and predicate generationannotationUtil- utility for annotation resolution and validation
-