From 53bd6f65ac9d43a8195c569d97037bc342699eda Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Tue, 24 Oct 2017 11:27:50 -0500 Subject: [PATCH] Adjust to new name of reactive repository --- .../ReactiveMongoOperationsSessionRepository.java | 10 +++++----- .../ReactiveMongoWebSessionConfigurationTest.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/springframework/session/data/mongo/ReactiveMongoOperationsSessionRepository.java b/src/main/java/org/springframework/session/data/mongo/ReactiveMongoOperationsSessionRepository.java index 3e5ca6f..0ad49b7 100644 --- a/src/main/java/org/springframework/session/data/mongo/ReactiveMongoOperationsSessionRepository.java +++ b/src/main/java/org/springframework/session/data/mongo/ReactiveMongoOperationsSessionRepository.java @@ -26,12 +26,12 @@ import reactor.core.publisher.Mono; import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.ReactiveMongoOperations; import org.springframework.data.mongodb.core.index.IndexOperations; -import org.springframework.session.ReactorSessionRepository; +import org.springframework.session.ReactiveSessionRepository; /** * @author Greg Turnquist */ -public class ReactiveMongoOperationsSessionRepository implements ReactorSessionRepository { +public class ReactiveMongoOperationsSessionRepository implements ReactiveSessionRepository { /** * The default time period in seconds in which a session will expire. @@ -58,7 +58,7 @@ public class ReactiveMongoOperationsSessionRepository implements ReactorSessionR /** * Creates a new {@link MongoSession} that is capable of being persisted by this - * {@link ReactorSessionRepository}. + * {@link ReactiveSessionRepository}. *

* This allows optimizations and customizations in how the {@link MongoSession} is * persisted. For example, the implementation returned might keep track of the changes @@ -66,7 +66,7 @@ public class ReactiveMongoOperationsSessionRepository implements ReactorSessionR *

* * @return a new {@link MongoSession} that is capable of being persisted by this - * {@link ReactorSessionRepository} + * {@link ReactiveSessionRepository} */ @Override public Mono createSession() { @@ -78,7 +78,7 @@ public class ReactiveMongoOperationsSessionRepository implements ReactorSessionR /** * Ensures the {@link MongoSession} created by - * {@link ReactorSessionRepository#createSession()} is saved. + * {@link ReactiveSessionRepository#createSession()} is saved. *

* Some implementations may choose to save as the {@link MongoSession} is updated by * returning a {@link MongoSession} that immediately persists any changes. In this case, diff --git a/src/test/java/org/springframework/session/data/mongo/config/annotation/web/reactive/ReactiveMongoWebSessionConfigurationTest.java b/src/test/java/org/springframework/session/data/mongo/config/annotation/web/reactive/ReactiveMongoWebSessionConfigurationTest.java index ce4aba6..10b2d04 100644 --- a/src/test/java/org/springframework/session/data/mongo/config/annotation/web/reactive/ReactiveMongoWebSessionConfigurationTest.java +++ b/src/test/java/org/springframework/session/data/mongo/config/annotation/web/reactive/ReactiveMongoWebSessionConfigurationTest.java @@ -33,7 +33,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.ReactiveMongoOperations; import org.springframework.data.mongodb.core.index.IndexOperations; -import org.springframework.session.ReactorSessionRepository; +import org.springframework.session.ReactiveSessionRepository; import org.springframework.session.config.annotation.web.server.EnableSpringWebSession; import org.springframework.session.data.mongo.AbstractMongoSessionConverter; import org.springframework.session.data.mongo.JacksonMongoSessionConverter; @@ -74,7 +74,7 @@ public class ReactiveMongoWebSessionConfigurationTest { assertThat(webSessionManagerFoundByName).isNotNull(); assertThat(webSessionManagerFoundByType).isEqualTo(webSessionManagerFoundByName); - assertThat(this.context.getBean(ReactorSessionRepository.class)).isNotNull(); + assertThat(this.context.getBean(ReactiveSessionRepository.class)).isNotNull(); } @Test