polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@616 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
5405f247e8
commit
45632781a2
|
|
@ -36,9 +36,12 @@ import org.springframework.core.NamedThreadLocal;
|
||||||
* <p>For a implementation of a thread-based <code>Scope</code> with support for destruction callbacks, refer to <a
|
* <p>For a implementation of a thread-based <code>Scope</code> with support for destruction callbacks, refer to <a
|
||||||
* href="http://www.springbyexample.org/twiki/bin/view/Example/CustomThreadScopeModule">this module</a>.
|
* href="http://www.springbyexample.org/twiki/bin/view/Example/CustomThreadScopeModule">this module</a>.
|
||||||
*
|
*
|
||||||
* @author Eugene Kuleshov
|
* <p>Thanks to Eugene Kuleshov for submitting the original prototype for a thread scope!
|
||||||
|
*
|
||||||
* @author Arjen Poutsma
|
* @author Arjen Poutsma
|
||||||
|
* @author Juergen Hoeller
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
|
* @see org.springframework.web.context.request.RequestScope
|
||||||
*/
|
*/
|
||||||
public class SimpleThreadScope implements Scope {
|
public class SimpleThreadScope implements Scope {
|
||||||
|
|
||||||
|
|
@ -69,7 +72,7 @@ public class SimpleThreadScope implements Scope {
|
||||||
|
|
||||||
public void registerDestructionCallback(String name, Runnable callback) {
|
public void registerDestructionCallback(String name, Runnable callback) {
|
||||||
logger.warn("SimpleThreadScope does not support descruction callbacks. " +
|
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) {
|
public Object resolveContextualObject(String key) {
|
||||||
|
|
@ -79,4 +82,5 @@ public class SimpleThreadScope implements Scope {
|
||||||
public String getConversationId() {
|
public String getConversationId() {
|
||||||
return Thread.currentThread().getName();
|
return Thread.currentThread().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<xsd:schema xmlns="http://www.springframework.org/schema/context" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
<xsd:schema xmlns="http://www.springframework.org/schema/context" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||||
xmlns:tool="http://www.springframework.org/schema/tool"
|
xmlns:tool="http://www.springframework.org/schema/tool"
|
||||||
targetNamespace="http://www.springframework.org/schema/context" elementFormDefault="qualified"
|
targetNamespace="http://www.springframework.org/schema/context" elementFormDefault="qualified"
|
||||||
attributeFormDefault="unqualified">
|
attributeFormDefault="unqualified">
|
||||||
|
|
||||||
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
|
<xsd:import namespace="http://www.springframework.org/schema/beans"/>
|
||||||
<xsd:import namespace="http://www.springframework.org/schema/tool"/>
|
<xsd:import namespace="http://www.springframework.org/schema/tool"/>
|
||||||
|
|
@ -313,7 +313,7 @@
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
<xsd:appinfo>
|
<xsd:appinfo>
|
||||||
<tool:annotation>
|
<tool:annotation>
|
||||||
<tool:exports type="org.springframework.jmx.export.annotation.MBeanExporter"/>
|
<tool:exports type="org.springframework.jmx.export.annotation.AnnotationMBeanExporter"/>
|
||||||
</tool:annotation>
|
</tool:annotation>
|
||||||
</xsd:appinfo>
|
</xsd:appinfo>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue