net.liftweb.util.ThreadGlobal

class ThreadGlobal

class ThreadGlobal[T]

 extends ScalaObject


This is a decorator for a ThreadLocal variable that provides convenience methods to transform the variable to a Box and execute functions in a "scope" wherein the variable may hold a different value.


Source: ThreadGlobal.scala(21)

 Constructors

def this

 Fields

box.. def box
Returns a Box containing the value of this ThreadGlobal in a null-safe fashion
Box[T]
value.. def value
Returns the current value of this variable
T

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
apply.. def apply(v : T)
Alias for set(v: T) [details]
param
v - the value to set.
ThreadGlobal[T]
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
doWith.. def doWith[R](x : T)(f : => R)
Sets this ThreadGlobal's contents to the specified value, executes the specified function, and then restores the ThreadGlobal to its earlier value [details]
This effectively creates a scope within the execution of the current thread for the execution of the specified function.
param
f - the function to execute
x - the value to temporarily set in this ThreadGlobal
R
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
set.. def set(v : T)
Sets the value of this ThreadGlobal [details]
param
v - the value to set.
ThreadGlobal[T]
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.