org.hyperscala.context

Context

class Context extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Context
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Context()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def apply[T](name: String): T

    Gets the value in the current context for name.

    Gets the value in the current context for name.

    T

    the value to return

    name

    the key to look up

    returns

    T

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def close(): Unit

    Closes the current context instance.

    Closes the current context instance. Must be coupled with an open() invocation. This method should be invoked within a finally block to verify a context instance is always closed after being opened.

  10. def contextualize[T](contextual: Contextual)(f: ⇒ T): T

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def get[T](name: String): Option[T]

    Gets the value back in an Option

    Gets the value back in an Option

    T

    the value to return

    name

    the key to look up

    returns

    Option[T]

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

    Definition Classes
    AnyRef → Any
  16. def getOrElse[T](name: String, default: ⇒ T): T

    Gets the value back or returns the default.

    Gets the value back or returns the default.

    T

    the value to return

    name

    the key to look up

    default

    the value to return if the key is not found

    returns

    T

  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def inContext: Boolean

    True if within a context

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def load(contextual: Contextual): Unit

    Loads a context instance from a Contextual.

    Loads a context instance from a Contextual. Wrap is the preferred method to use instead of this to make sure close gets properly invoked upon completion.

    contextual

    contains a context instance upon instantiation

  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def open(): Unit

    Opens a context instance and wraps any current instance to set back at close.

    Opens a context instance and wraps any current instance to set back at close. It is preferable to use the wrap method instead to verify close occurs at the end of instruction. All calls to this must be followed by a close() invocation within a finally block.

  25. def set[T](name: String, value: T): Unit

    Updates the value in the context

    Updates the value in the context

    T

    the type

    name

    the key

    value

    the new value to set

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. implicit def thisContext: Context

  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def update(name: String, value: Any): Unit

    Updates the value in the context

    Updates the value in the context

    name

    the key

    value

    the new value to set

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def wrap[T](f: ⇒ T): T

    Provides the functionality of open/close without the concern of having to make sure the instance is closed.

    Provides the functionality of open/close without the concern of having to make sure the instance is closed. The function is invoked between open and close.

    T

    the value returned by the function

    f

    to invoke within the context

    returns

    T

Inherited from AnyRef

Inherited from Any

Ungrouped