named thread locals for introspection

This commit is contained in:
Keith Donald
2008-05-07 15:55:06 +00:00
parent d6b2b0132e
commit 07413c34b3
2 changed files with 6 additions and 2 deletions

View File

@@ -15,6 +15,8 @@
*/
package org.springframework.webflow.context;
import org.springframework.core.NamedThreadLocal;
/**
* Simple holder class that associates an {@link ExternalContext} instance with the current thread. The ExternalContext
* will not be inherited by any child threads spawned by the current thread.
@@ -28,7 +30,7 @@ package org.springframework.webflow.context;
*/
public final class ExternalContextHolder {
private static final ThreadLocal externalContextHolder = new ThreadLocal();
private static final ThreadLocal externalContextHolder = new NamedThreadLocal("Flow ExternalContext");
/**
* Associate the given ExternalContext with the current thread.

View File

@@ -15,6 +15,8 @@
*/
package org.springframework.webflow.execution;
import org.springframework.core.NamedThreadLocal;
/**
* Simple holder class that associates a {@link RequestContext} instance with the current thread. The RequestContext
* will not be inherited by any child threads spawned by the current thread.
@@ -28,7 +30,7 @@ package org.springframework.webflow.execution;
*/
public class RequestContextHolder {
private static final ThreadLocal requestContextHolder = new ThreadLocal();
private static final ThreadLocal requestContextHolder = new NamedThreadLocal("Flow RequestContext");
/**
* Associate the given RequestContext with the current thread.