/** * Creates a new instance * * @param mappingContext the {@link RedisMappingContext} to use. Cannot be null. * @param parser the {@link SpelExpressionParser} to use. Cannot be null. */ public SpelIndexResolver(RedisMappingContext mappingContext, SpelExpressionParser parser) { Assert.notNull(mappingContext, "RedisMappingContext must not be null!"); Assert.notNull(parser, "SpelExpressionParser must not be null!"); this.mappingContext = mappingContext; this.settings = mappingContext.getMappingConfiguration().getIndexConfiguration(); this.expressionCache = new HashMap<>(); this.parser = parser; }
/** * Creates new {@link PathIndexResolver} with given {@link IndexConfiguration}. * * @param mappingContext must not be {@literal null}. */ public PathIndexResolver(RedisMappingContext mappingContext) { Assert.notNull(mappingContext, "MappingContext must not be null!"); this.mappingContext = mappingContext; this.indexConfiguration = mappingContext.getMappingConfiguration().getIndexConfiguration(); this.indexedDataFactoryProvider = new IndexedDataFactoryProvider(); }
/** * Creates a new instance * * @param mappingContext the {@link RedisMappingContext} to use. Cannot be null. * @param parser the {@link SpelExpressionParser} to use. Cannot be null. */ public SpelIndexResolver(RedisMappingContext mappingContext, SpelExpressionParser parser) { Assert.notNull(mappingContext, "RedisMappingContext must not be null!"); Assert.notNull(parser, "SpelExpressionParser must not be null!"); this.mappingContext = mappingContext; this.settings = mappingContext.getMappingConfiguration().getIndexConfiguration(); this.expressionCache = new HashMap<>(); this.parser = parser; }
/** * Creates a new instance * * @param mappingContext the {@link RedisMappingContext} to use. Cannot be null. * @param parser the {@link SpelExpressionParser} to use. Cannot be null. */ public SpelIndexResolver(RedisMappingContext mappingContext, SpelExpressionParser parser) { Assert.notNull(mappingContext, "RedisMappingContext must not be null!"); Assert.notNull(parser, "SpelExpressionParser must not be null!"); this.mappingContext = mappingContext; this.settings = mappingContext.getMappingConfiguration().getIndexConfiguration(); this.expressionCache = new HashMap<>(); this.parser = parser; }
/** * Creates new {@link PathIndexResolver} with given {@link IndexConfiguration}. * * @param mappingContext must not be {@literal null}. */ public PathIndexResolver(RedisMappingContext mappingContext) { Assert.notNull(mappingContext, "MappingContext must not be null!"); this.mappingContext = mappingContext; this.indexConfiguration = mappingContext.getMappingConfiguration().getIndexConfiguration(); this.indexedDataFactoryProvider = new IndexedDataFactoryProvider(); }
/** * Creates new {@link PathIndexResolver} with given {@link IndexConfiguration}. * * @param mappingContext must not be {@literal null}. */ public PathIndexResolver(RedisMappingContext mappingContext) { Assert.notNull(mappingContext, "MappingContext must not be null!"); this.mappingContext = mappingContext; this.indexConfiguration = mappingContext.getMappingConfiguration().getIndexConfiguration(); this.indexedDataFactoryProvider = new IndexedDataFactoryProvider(); }