diff --git a/docs/src/test/java/docs/http/HazelcastHttpSessionConfig.java b/docs/src/test/java/docs/http/HazelcastHttpSessionConfig.java index bea79135..14f707f2 100644 --- a/docs/src/test/java/docs/http/HazelcastHttpSessionConfig.java +++ b/docs/src/test/java/docs/http/HazelcastHttpSessionConfig.java @@ -17,7 +17,7 @@ package docs.http; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.session.data.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession; +import org.springframework.session.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession; import com.hazelcast.config.Config; import com.hazelcast.core.Hazelcast; diff --git a/samples/hazelcast-spring/src/main/java/sample/Config.java b/samples/hazelcast-spring/src/main/java/sample/Config.java index 64f229a5..343359e4 100644 --- a/samples/hazelcast-spring/src/main/java/sample/Config.java +++ b/samples/hazelcast-spring/src/main/java/sample/Config.java @@ -17,7 +17,7 @@ package sample; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.session.data.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession; +import org.springframework.session.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession; import org.springframework.util.SocketUtils; import com.hazelcast.config.NetworkConfig; diff --git a/spring-session/src/integration-test/java/org/springframework/session/data/hazelcast/HazelcastRepositoryITests.java b/spring-session/src/integration-test/java/org/springframework/session/hazelcast/HazelcastRepositoryITests.java similarity index 94% rename from spring-session/src/integration-test/java/org/springframework/session/data/hazelcast/HazelcastRepositoryITests.java rename to spring-session/src/integration-test/java/org/springframework/session/hazelcast/HazelcastRepositoryITests.java index ad64c137..a3b821f7 100644 --- a/spring-session/src/integration-test/java/org/springframework/session/data/hazelcast/HazelcastRepositoryITests.java +++ b/spring-session/src/integration-test/java/org/springframework/session/hazelcast/HazelcastRepositoryITests.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.session.data.hazelcast; +package org.springframework.session.hazelcast; import static org.fest.assertions.Assertions.assertThat; @@ -24,7 +24,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.session.ExpiringSession; import org.springframework.session.SessionRepository; -import org.springframework.session.data.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession; +import org.springframework.session.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; diff --git a/spring-session/src/integration-test/java/org/springframework/session/data/hazelcast/config/annotation/web/http/EnableHazelcastHttpSessionEventsTests.java b/spring-session/src/integration-test/java/org/springframework/session/hazelcast/config/annotation/web/http/EnableHazelcastHttpSessionEventsTests.java similarity index 97% rename from spring-session/src/integration-test/java/org/springframework/session/data/hazelcast/config/annotation/web/http/EnableHazelcastHttpSessionEventsTests.java rename to spring-session/src/integration-test/java/org/springframework/session/hazelcast/config/annotation/web/http/EnableHazelcastHttpSessionEventsTests.java index 053ff756..63fc4f85 100644 --- a/spring-session/src/integration-test/java/org/springframework/session/data/hazelcast/config/annotation/web/http/EnableHazelcastHttpSessionEventsTests.java +++ b/spring-session/src/integration-test/java/org/springframework/session/hazelcast/config/annotation/web/http/EnableHazelcastHttpSessionEventsTests.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.session.data.hazelcast.config.annotation.web.http; +package org.springframework.session.hazelcast.config.annotation.web.http; import static org.fest.assertions.Assertions.assertThat; @@ -35,6 +35,7 @@ import org.springframework.session.data.SessionEventRegistry; import org.springframework.session.events.SessionCreatedEvent; import org.springframework.session.events.SessionDeletedEvent; import org.springframework.session.events.SessionExpiredEvent; +import org.springframework.session.hazelcast.config.annotation.web.http.EnableHazelcastHttpSession; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; diff --git a/spring-session/src/main/java/org/springframework/session/data/hazelcast/SessionEntryListener.java b/spring-session/src/main/java/org/springframework/session/hazelcast/SessionEntryListener.java similarity index 82% rename from spring-session/src/main/java/org/springframework/session/data/hazelcast/SessionEntryListener.java rename to spring-session/src/main/java/org/springframework/session/hazelcast/SessionEntryListener.java index ade32b73..0e712513 100644 --- a/spring-session/src/main/java/org/springframework/session/data/hazelcast/SessionEntryListener.java +++ b/spring-session/src/main/java/org/springframework/session/hazelcast/SessionEntryListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.session.data.hazelcast; +package org.springframework.session.hazelcast; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -34,11 +34,11 @@ import com.hazelcast.map.listener.EntryRemovedListener; * translate those events into the corresponding Spring Session events. * Publish the Spring Session events with the given {@link ApplicationEventPublisher}. *
*
@@ -45,7 +45,7 @@ import org.springframework.session.config.annotation.web.http.EnableSpringHttpSe
*
*
* More advanced configurations can extend {@link HazelcastHttpSessionConfiguration} instead.
- *
+ *
* @author Tommy Ludwig
* @since 1.1
* @see EnableSpringHttpSession
@@ -62,11 +62,11 @@ public @interface EnableHazelcastHttpSession {
* If you wish to use external configuration (outside of this annotation) to set this value, you can * set this to "" (an empty String), which will prevent this configuration from overriding * the external configuration for this value.
- * + * * @return the seconds a session can be inactive before expiring */ String maxInactiveIntervalInSeconds() default "1800"; - + /** * This is the name of the Map that will be used in Hazelcast to store the session data. * Default is "spring:session:sessions". diff --git a/spring-session/src/main/java/org/springframework/session/data/hazelcast/config/annotation/web/http/HazelcastHttpSessionConfiguration.java b/spring-session/src/main/java/org/springframework/session/hazelcast/config/annotation/web/http/HazelcastHttpSessionConfiguration.java similarity index 94% rename from spring-session/src/main/java/org/springframework/session/data/hazelcast/config/annotation/web/http/HazelcastHttpSessionConfiguration.java rename to spring-session/src/main/java/org/springframework/session/hazelcast/config/annotation/web/http/HazelcastHttpSessionConfiguration.java index 728c69d1..b787bdd6 100644 --- a/spring-session/src/main/java/org/springframework/session/data/hazelcast/config/annotation/web/http/HazelcastHttpSessionConfiguration.java +++ b/spring-session/src/main/java/org/springframework/session/hazelcast/config/annotation/web/http/HazelcastHttpSessionConfiguration.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.session.data.hazelcast.config.annotation.web.http; +package org.springframework.session.hazelcast.config.annotation.web.http; import java.util.Map; @@ -31,7 +31,7 @@ import org.springframework.session.ExpiringSession; import org.springframework.session.MapSessionRepository; import org.springframework.session.SessionRepository; import org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration; -import org.springframework.session.data.hazelcast.SessionEntryListener; +import org.springframework.session.hazelcast.SessionEntryListener; import org.springframework.session.web.http.SessionRepositoryFilter; import org.springframework.util.ClassUtils; @@ -43,26 +43,26 @@ import com.hazelcast.core.IMap; * Exposes the {@link SessionRepositoryFilter} as a bean named * "springSessionRepositoryFilter". In order to use this a single * {@link HazelcastInstance} must be exposed as a Bean. - * + * * @author Tommy Ludwig * @since 1.1 * @see EnableHazelcastHttpSession */ @Configuration public class HazelcastHttpSessionConfiguration extends SpringHttpSessionConfiguration implements ImportAware, BeanClassLoaderAware { - - /** This is the magic value to use if you do not want this configuration + + /** This is the magic value to use if you do not want this configuration * overriding the maxIdleSeconds value for the Map backing the session data. */ private static final String DO_NOT_CONFIGURE_INACTIVE_INTERVAL_STRING = ""; - + private ClassLoader beanClassLoader; - + private Integer maxInactiveIntervalInSeconds = 1800; - + private String sessionMapName = "spring:session:sessions"; - + private String sessionListenerUid; - + private IMap