Class ApplicationConfig
java.lang.Object
com.beassolution.rule.config.ApplicationConfig
Main application configuration class for the Beas Rule Engine.
This class provides core configuration beans for the application including:
- RSQL parser configuration for advanced querying
- ModelMapper configuration for object mapping
- Custom comparison operators for RSQL queries
The RSQL parser is configured with extended operators to support complex querying capabilities including filtering, sorting, and pagination.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Beas Solution Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.modelmapper.ModelMapper
Creates and configures the ModelMapper for object mapping.cz.jirutka.rsql.parser.RSQLParser
Creates and configures the RSQL parser with custom operators.
-
Constructor Details
-
ApplicationConfig
public ApplicationConfig()
-
-
Method Details
-
rsqlParser
@Bean public cz.jirutka.rsql.parser.RSQLParser rsqlParser()Creates and configures the RSQL parser with custom operators.This bean configures the RSQL parser with extended comparison operators that support advanced querying capabilities. The parser includes both standard RSQL operators and custom operators for specific use cases.
Supported operators include:
- Equality: ==, !=
- Comparison: =gt=, =ge=, =lt=, =le=
- Collection: =in=, =out=
- Pattern matching: =like=, =notlike=
- Null checks: =isEmpty=
- Returns:
- Configured RSQLParser instance with custom operators
-
modelMapper
@Bean public org.modelmapper.ModelMapper modelMapper()Creates and configures the ModelMapper for object mapping.This bean configures the ModelMapper with specific settings for optimal object mapping behavior in the rule engine context.
Configuration includes:
- Skip null values during mapping
- Enable deep copying for nested objects
- Enable collection merging
- Require full type matching for safety
- Returns:
- Configured ModelMapper instance
-