Top Description Fields Constructors Methods
org.springframework.core

public Class NamedInheritableThreadLocal<T>

extends InheritableThreadLocal<T>
Class Inheritance
Type Parameters
<T>
the value type
Imports
org.springframework.util.Assert

InheritableThreadLocal subclass that exposes a specified name as toString() result (allowing for introspection).
Author
Juergen Hoeller
Since
2.5.2
See Also
NamedThreadLocal

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
NamedInheritableThreadLocal(String
a descriptive name for this ThreadLocal
name
)

Create a new NamedInheritableThreadLocal with the given name.

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.InheritableThreadLocal:
childValue

Field Detail

nameback to summary
private final String name

Constructor Detail

NamedInheritableThreadLocalback to summary
public NamedInheritableThreadLocal(String name)

Create a new NamedInheritableThreadLocal with the given name.

Parameters
name:String

a descriptive name for this ThreadLocal

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override