diff --git a/gradle.properties b/gradle.properties index de00126a..de8cf74a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,7 @@ springSecurityVersion=4.0.0.RELEASE junitVersion=4.11 jstlVersion=1.2.1 +jspApiVersion=2.0 jedisVersion=2.5.2 springVersion=4.1.6.RELEASE groovyVersion=2.3.11 diff --git a/samples/hazelcast-spring/build.gradle b/samples/hazelcast-spring/build.gradle index 194274a0..538d74dc 100644 --- a/samples/hazelcast-spring/build.gradle +++ b/samples/hazelcast-spring/build.gradle @@ -14,7 +14,8 @@ dependencies { "com.hazelcast:hazelcast-client:$hazelcastVersion", jstlDependencies - providedCompile "javax.servlet:javax.servlet-api:$servletApiVersion" + providedCompile "javax.servlet:javax.servlet-api:$servletApiVersion", + "javax.servlet:jsp-api:$jspApiVersion" testCompile "junit:junit:$junitVersion" diff --git a/samples/hazelcast-spring/src/integration-test/groovy/sample/HazelcastSpringTests.groovy b/samples/hazelcast-spring/src/integration-test/groovy/sample/HazelcastSpringTests.groovy index 5dd53f12..12a1fa96 100644 --- a/samples/hazelcast-spring/src/integration-test/groovy/sample/HazelcastSpringTests.groovy +++ b/samples/hazelcast-spring/src/integration-test/groovy/sample/HazelcastSpringTests.groovy @@ -27,7 +27,7 @@ import spock.lang.Stepwise * @author Rob Winch */ @Stepwise -class SecurityTests extends GebReportingSpec { +class HazelcastSpringTests extends GebReportingSpec { def 'Unauthenticated user sent to log in page'() { when: 'unauthenticated user request protected page' diff --git a/samples/hazelcast-spring/src/main/java/sample/Config.java b/samples/hazelcast-spring/src/main/java/sample/Config.java index cdd03500..1757aabb 100644 --- a/samples/hazelcast-spring/src/main/java/sample/Config.java +++ b/samples/hazelcast-spring/src/main/java/sample/Config.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package sample; import org.springframework.beans.factory.annotation.Autowired; diff --git a/samples/hazelcast-spring/src/main/java/sample/SessionCreatedListener.java b/samples/hazelcast-spring/src/main/java/sample/SessionCreatedListener.java index ddd540d2..02e4bc99 100644 --- a/samples/hazelcast-spring/src/main/java/sample/SessionCreatedListener.java +++ b/samples/hazelcast-spring/src/main/java/sample/SessionCreatedListener.java @@ -1,4 +1,18 @@ - +/* + * Copyright 2002-2015 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 + * + * http://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 sample; import org.springframework.context.ApplicationEventPublisher; @@ -8,6 +22,11 @@ import org.springframework.session.events.SessionCreatedEvent; import com.hazelcast.core.EntryEvent; import com.hazelcast.map.listener.EntryAddedListener; +/** +* +* @author Mark Anderson +* +*/ public class SessionCreatedListener implements EntryAddedListener { diff --git a/samples/hazelcast-spring/src/main/java/sample/SessionEvictedListener.java b/samples/hazelcast-spring/src/main/java/sample/SessionEvictedListener.java index f74f9820..1a76ed31 100644 --- a/samples/hazelcast-spring/src/main/java/sample/SessionEvictedListener.java +++ b/samples/hazelcast-spring/src/main/java/sample/SessionEvictedListener.java @@ -1,4 +1,18 @@ - +/* + * Copyright 2002-2015 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 + * + * http://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 sample; import org.springframework.context.ApplicationEventPublisher; @@ -8,6 +22,11 @@ import org.springframework.session.events.SessionExpiredEvent; import com.hazelcast.core.EntryEvent; import com.hazelcast.map.listener.EntryEvictedListener; +/** +* +* @author Mark Anderson +* +*/ public class SessionEvictedListener implements EntryEvictedListener { diff --git a/samples/hazelcast-spring/src/main/java/sample/SessionRemovedListener.java b/samples/hazelcast-spring/src/main/java/sample/SessionRemovedListener.java index 81d5a0b7..da334e10 100644 --- a/samples/hazelcast-spring/src/main/java/sample/SessionRemovedListener.java +++ b/samples/hazelcast-spring/src/main/java/sample/SessionRemovedListener.java @@ -1,4 +1,18 @@ - +/* + * Copyright 2002-2015 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 + * + * http://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 sample; import org.springframework.context.ApplicationEventPublisher; @@ -8,6 +22,11 @@ import org.springframework.session.events.SessionDeletedEvent; import com.hazelcast.core.EntryEvent; import com.hazelcast.map.listener.EntryRemovedListener; +/** + * + * @author Mark Anderson + * + */ public class SessionRemovedListener implements EntryRemovedListener {