diff --git a/org.springframework.context/src/main/java/org/springframework/context/support/SimpleThreadScope.java b/org.springframework.context/src/main/java/org/springframework/context/support/SimpleThreadScope.java index c45f2c43129..db04a72e19a 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/support/SimpleThreadScope.java +++ b/org.springframework.context/src/main/java/org/springframework/context/support/SimpleThreadScope.java @@ -36,9 +36,12 @@ import org.springframework.core.NamedThreadLocal; *

For a implementation of a thread-based Scope with support for destruction callbacks, refer to this module. * - * @author Eugene Kuleshov + *

Thanks to Eugene Kuleshov for submitting the original prototype for a thread scope! + * * @author Arjen Poutsma + * @author Juergen Hoeller * @since 3.0 + * @see org.springframework.web.context.request.RequestScope */ public class SimpleThreadScope implements Scope { @@ -69,7 +72,7 @@ public class SimpleThreadScope implements Scope { public void registerDestructionCallback(String name, Runnable callback) { logger.warn("SimpleThreadScope does not support descruction callbacks. " + - "Consider using a RequestScope in a Web environment"); + "Consider using a RequestScope in a Web environment."); } public Object resolveContextualObject(String key) { @@ -79,4 +82,5 @@ public class SimpleThreadScope implements Scope { public String getConversationId() { return Thread.currentThread().getName(); } + } diff --git a/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-2.5.xsd b/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-2.5.xsd index 0cbb8da9273..542eade52b4 100644 --- a/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-2.5.xsd +++ b/org.springframework.context/src/main/resources/org/springframework/context/config/spring-context-2.5.xsd @@ -1,10 +1,10 @@ + xmlns:beans="http://www.springframework.org/schema/beans" + xmlns:tool="http://www.springframework.org/schema/tool" + targetNamespace="http://www.springframework.org/schema/context" elementFormDefault="qualified" + attributeFormDefault="unqualified"> @@ -313,7 +313,7 @@ ]]> - +