net.liftweb.util

AnyVarTrait

trait AnyVarTrait[T, MyType <: AnyVarTrait[T, MyType]] extends PSettableValueHolder[T] with HasCalcDefaultValue[T]

Abstract a request or a session scoped variable.

Self Type
MyType
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AnyVarTrait
  2. HasCalcDefaultValue
  3. PSettableValueHolder
  4. SettableValueHolder
  5. Settable
  6. PValueHolder
  7. ValueHolder
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type CleanUpParam

  2. type ValueType = T

    Definition Classes
    PValueHolder → ValueHolder

Abstract Value Members

  1. abstract def calcDefaultValue: T

    Attributes
    protected
    Definition Classes
    AnyVarTrait → HasCalcDefaultValue
  2. abstract def clearFunc(name: String): Unit

    Attributes
    protected
  3. abstract def doSync[F](f: ⇒ F): F

    Different Vars require different mechanisms for synchronization.

    Different Vars require different mechanisms for synchronization. This method implements the Var specific synchronization mechanism

  4. abstract def findFunc(name: String): Box[T]

    Attributes
    protected
  5. abstract def registerCleanupFunc(in: (MyType.CleanUpParam) ⇒ Unit): Unit

    Attributes
    protected
  6. abstract def setFunc(name: String, value: T): Unit

    Attributes
    protected
  7. abstract def testWasSet(name: String, initedKey: String): Boolean

    A non-side-effecting test if the value was initialized

    A non-side-effecting test if the value was initialized

    Attributes
    protected
  8. abstract def wasInitialized(name: String, initedKey: String): Boolean

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def __nameSalt: String

    Attributes
    protected
  5. def apply(what: T): T

    Set the session variable

    Set the session variable

    what

    -- the value to set the session variable to

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def atomicUpdate(f: (MyType.ValueType) ⇒ MyType.ValueType): MyType.ValueType

    Perform an atomic update of this Settable.

    Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance

    Definition Classes
    Settable
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def doWith[F](newVal: T)(f: ⇒ F): F

    Change the value of the Var for the lifespan of the function

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get: T

    Shadow of the 'is' method

    Shadow of the 'is' method

    Definition Classes
    AnyVarTrait → ValueHolder
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def is: T

    The current value of the variable

    The current value of the variable

    Definition Classes
    AnyVarTrait → ValueHolder
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. lazy val name: String

    Attributes
    protected
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def onShutdown(session: MyType.CleanUpParam): Unit

    Attributes
    protected
  23. def performAtomicOperation[T](f: ⇒ T): T

    Perform an atomic operation on the Settable.

    Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms

    Definition Classes
    Settable
  24. final def registerGlobalCleanupFunc(in: (MyType.CleanUpParam) ⇒ Unit): Unit

    Attributes
    protected
  25. def remove(): Unit

  26. def set(what: T): T

    Shadow of the apply method

    Shadow of the apply method

    Definition Classes
    AnyVarTrait → Settable
  27. def setIsUnset(value: ⇒ T): T

    Set the Var if it has not been calculated

  28. def set_?: Boolean

    Has this Var been set or accessed and had its default value calculated

  29. def settingDefault_?: Boolean

    Attributes
    protected
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyVarTrait → AnyRef → Any
  32. def update(f: (T) ⇒ T): T

    Applies the given function to the contents of this variable and sets the variable to the resulting value.

    Applies the given function to the contents of this variable and sets the variable to the resulting value.

    f

    -- the function to apply and set the result from.

  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HasCalcDefaultValue[T]

Inherited from PSettableValueHolder[T]

Inherited from SettableValueHolder

Inherited from Settable

Inherited from PValueHolder[T]

Inherited from ValueHolder

Inherited from AnyRef

Inherited from Any

Ungrouped