net.liftweb.util.AnyVarTrait

trait AnyVarTrait

trait AnyVarTrait[T, MyType <: AnyVarTrait[T, MyType]]

 extends PSettableValueHolder[T] with HasCalcDefaultValue[T] with ScalaObject


Abstract a request or a session scoped variable.


Source: AnyVar.scala(80)

Direct Known Subclasses

AnyVar,

 Fields

__nameSalt.. protected def __nameSalt String
calcDefaultValue.. protected abstract def calcDefaultValue T
get.. def get
Shadow of the 'is' method
T
is.. def is
The current value of the variable
T
name.. protected lazy val name String
set_?.. def set_?
Has this Var been set or accessed and had its default value calculated
Boolean

 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(what : T)
Set the session variable [details]
param
what - -- the value to set the session variable to
T
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clearFunc.. protected abstract def clearFunc(name : String) Unit
clone.. protected def clone Object AnyRef
doSync.. abstract def doSync[F](f : => F)
Different Vars require different mechanisms for synchronization [details]
This method implements the Var specific synchronization mechanism
F
doWith.. def doWith[F](newVal : T)(f : => F)
Change the value of the Var for the lifespan of the function
F
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
findFunc.. protected abstract def findFunc(name : String) Box[T]
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
onShutdown.. protected def onShutdown(session : CleanUpParam) Unit
registerCleanupFunc.. protected abstract def registerCleanupFunc(in : (CleanUpParam) => Unit) Unit
registerGlobalCleanupFunc.. protected final def registerGlobalCleanupFunc(in : (CleanUpParam) => Unit) Unit
remove.. def remove Unit
set.. def set(what : T)
Shadow of the apply method
T
setFunc.. protected abstract def setFunc(name : String, value : T) Unit
setIsUnset.. def setIsUnset(value : => T)
Set the Var if it has not been calculated
T
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
testWasSet.. protected abstract def testWasSet(name : String)
A non-side-effecting test if the value was initialized
Boolean
toString.. override def toString String
update.. def update(f : (T) => T)
Applies the given function to the contents of this variable and sets the variable to the resulting value [details]
param
f - -- the function to apply and set the result from.
T
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
wasInitialized.. protected abstract def wasInitialized(name : String) Boolean
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.