/spring-integration-mongodb/src/main/java/org/springframework/integration/mongodb/dsl/ReactiveMongoDbMessageSourceSpec.java
https://github.com/artembilan/spring-integration · Java · 46 lines · 16 code · 8 blank · 22 comment · 0 complexity · 87d218cf996abbdd0617ac4836f69b37 MD5 · raw file
- /*
- * Copyright 2020-2021 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- package org.springframework.integration.mongodb.dsl;
- import org.springframework.data.mongodb.ReactiveMongoDatabaseFactory;
- import org.springframework.data.mongodb.core.ReactiveMongoOperations;
- import org.springframework.expression.Expression;
- import org.springframework.integration.mongodb.inbound.ReactiveMongoDbMessageSource;
- /**
- * A {@link AbstractMongoDbMessageSourceSpec} implementation for a {@link ReactiveMongoDbMessageSource}.
- *
- * @author Artem Bilan
- *
- * @since 5.3
- */
- public class ReactiveMongoDbMessageSourceSpec
- extends AbstractMongoDbMessageSourceSpec<ReactiveMongoDbMessageSourceSpec, ReactiveMongoDbMessageSource> {
- protected ReactiveMongoDbMessageSourceSpec(ReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory,
- Expression queryExpression) {
- this.target = new ReactiveMongoDbMessageSource(reactiveMongoDatabaseFactory, queryExpression);
- }
- protected ReactiveMongoDbMessageSourceSpec(ReactiveMongoOperations reactiveMongoTemplate,
- Expression queryExpression) {
- this.target = new ReactiveMongoDbMessageSource(reactiveMongoTemplate, queryExpression);
- }
- }