Class SpringWebQueryPropertiesAutoConfig
java.lang.Object
in.co.akshitbansal.springwebquery.config.SpringWebQueryPropertiesAutoConfig
Publishes the validated global filtering configuration used by the starter's
specification resolver auto-configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionin.co.akshitbansal.springwebquery.SpringWebQueryPropertiesspringWebQueryProperties(String globalFilterParamName, boolean globalAllowAndOperation, boolean globalAllowOrOperation, int globalMaxASTDepth, boolean dtoAwareFieldResolutionCachingEnabled, int failedDTOAwareResolutionCachingMaxCapacity, int dtoAwareFieldResolutionCachingLockStripeCount, in.co.akshitbansal.springwebquery.validator.QueryParamNameValidator queryParamNameValidator) Creates the shared immutable container for global filtering defaults contributed through application configuration.
-
Constructor Details
-
SpringWebQueryPropertiesAutoConfig
public SpringWebQueryPropertiesAutoConfig()
-
-
Method Details
-
springWebQueryProperties
@Bean public in.co.akshitbansal.springwebquery.SpringWebQueryProperties springWebQueryProperties(@Value("${spring-web-query.filtering.filter-param-name:filter}") String globalFilterParamName, @Value("${spring-web-query.filtering.allow-and-operation:true}") boolean globalAllowAndOperation, @Value("${spring-web-query.filtering.allow-or-operation:false}") boolean globalAllowOrOperation, @Value("${spring-web-query.filtering.max-ast-depth:1}") int globalMaxASTDepth, @Value("${spring-web-query.field-resolution.dto-aware.caching.enabled:true}") boolean dtoAwareFieldResolutionCachingEnabled, @Value("${spring-web-query.field-resolution.dto-aware.caching.failed-resolutions-max-capacity:1000}") int failedDTOAwareResolutionCachingMaxCapacity, @Value("${spring-web-query.field-resolution.dto-aware.caching.lock-stripe-count:32}") int dtoAwareFieldResolutionCachingLockStripeCount, in.co.akshitbansal.springwebquery.validator.QueryParamNameValidator queryParamNameValidator) Creates the shared immutable container for global filtering defaults contributed through application configuration.- Parameters:
globalFilterParamName- configured request parameter name for filter expressionsglobalAllowAndOperation- whether logical AND nodes are allowed by defaultglobalAllowOrOperation- whether logical OR nodes are allowed by defaultglobalMaxASTDepth- configured maximum allowed depth for parsed RSQL ASTsdtoAwareFieldResolutionCachingEnabled- whether DTO-aware field-resolution caching is enabledfailedDTOAwareResolutionCachingMaxCapacity- maximum number of failed DTO-aware resolutions to cachedtoAwareFieldResolutionCachingLockStripeCount- number of lock stripes used to coordinate cache population for selector keysqueryParamNameValidator- validator used for configured filter parameter names- Returns:
- validated global filtering properties
- Throws:
in.co.akshitbansal.springwebquery.exception.QueryConfigurationException- if the configured maximum AST depth is negative or the failed-resolution cache capacity is non-positive
-