Class

net.liftweb.util

NonCleanAnyVar

Related Doc: package util

Permalink

abstract class NonCleanAnyVar[T] extends AnyVar[T, NonCleanAnyVar[T]]

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NonCleanAnyVar
  2. AnyVar
  3. AnyVarTrait
  4. HasCalcDefaultValue
  5. PSettableValueHolder
  6. SettableValueHolder
  7. Settable
  8. PValueHolder
  9. ValueHolder
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NonCleanAnyVar(dflt: ⇒ T)

    Permalink

Type Members

  1. type CleanUpParam = Unit

    Permalink
    Definition Classes
    NonCleanAnyVarAnyVarTrait
  2. type FuncType = (Box[T], Boolean) ⇒ Unit

    Permalink

    The function takes a Box[T] (Full if the Var is being set, Empty if it's being cleared) and a Boolean indicating that the set function is setting to the default value.

    The function takes a Box[T] (Full if the Var is being set, Empty if it's being cleared) and a Boolean indicating that the set function is setting to the default value.

    Definition Classes
    AnyVarTrait
  3. type ValueType = T

    Permalink
    Definition Classes
    PValueHolderValueHolder

Abstract Value Members

  1. abstract def clearFunc(name: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  2. abstract def doSync[F](f: ⇒ F): F

    Permalink

    Different Vars require different mechanisms for synchronization.

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

    Definition Classes
    AnyVarTrait
  3. abstract def findFunc(name: String): Box[T]

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  4. abstract def setFunc(name: String, value: T): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  5. abstract def testWasSet(name: String, initedKey: String): Boolean

    Permalink

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

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

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  6. abstract def wasInitialized(name: String, initedKey: String): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def __nameSalt: String

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  5. def apply(what: T): T

    Permalink

    Set the session variable

    Set the session variable

    what

    -- the value to set the session variable to

    Definition Classes
    AnyVarTrait
  6. final def asInstanceOf[T0]: T0

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

    Permalink

    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 calcDefaultValue: T

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarAnyVarTraitHasCalcDefaultValue
  9. def clone(): AnyRef

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

    Permalink

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

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

    Definition Classes
    AnyVarTrait
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink

    Shadow of the 'is' method

    Shadow of the 'is' method

    Definition Classes
    AnyVarTraitValueHolder
  15. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def is: T

    Permalink

    The current value of the variable

    The current value of the variable

    Definition Classes
    AnyVarTrait
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. lazy val name: String

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def onChange(f: FuncType): Unit

    Permalink

    On any change to this Var, invoke the function.

    On any change to this Var, invoke the function. Changes are setting the value, clearing the value. There may not be a call if the Var goes out of scope (e.g., a RequestVar at the end of the Request).

    The function takes a Box[T] (Full if the Var is being set, Empty if it's being cleared) and a Boolean indicating that the set function is setting to the default value.

    The function should execute *very* quickly (e.g., Schedule a function to be executed on a different thread).

    The function should generally be set in Boot or when a singleton is created.

    f

    the function to execute on change

    Definition Classes
    AnyVarTrait
  24. def onShutdown(session: CleanUpParam): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  25. def performAtomicOperation[T](f: ⇒ T): T

    Permalink

    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
  26. def registerCleanupFunc(in: (Unit) ⇒ Unit): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    NonCleanAnyVarAnyVarTrait
  27. final def registerGlobalCleanupFunc(in: (CleanUpParam) ⇒ Unit): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  28. def remove(): Unit

    Permalink
    Definition Classes
    AnyVarTrait
  29. def set(what: T): T

    Permalink

    Shadow of the apply method

    Shadow of the apply method

    Definition Classes
    AnyVarTraitSettable
  30. def setIfUnset(value: ⇒ T): T

    Permalink

    Set the Var if it has not been calculated

    Set the Var if it has not been calculated

    Definition Classes
    AnyVarTrait
  31. def set_?: Boolean

    Permalink

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

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

    Definition Classes
    AnyVarTrait
  32. def settingDefault_?: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AnyVarTrait
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

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

    Permalink

    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.

    Definition Classes
    AnyVarTrait
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyVar[T, NonCleanAnyVar[T]]

Inherited from AnyVarTrait[T, NonCleanAnyVar[T]]

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