Class/Object

org.hyperscala.context

Context

Related Docs: object Context | package context

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Context()

    Permalink

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 apply[T](name: String): T

    Permalink

    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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

    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.

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

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink

    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]

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

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

    Permalink

    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

  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def inContext: Boolean

    Permalink

    True if within a context

  17. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def open(): Unit

    Permalink

    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.

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

    Permalink

    Updates the value in the context

    Updates the value in the context

    T

    the type

    name

    the key

    value

    the new value to set

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

    Permalink
    Definition Classes
    AnyRef
  25. implicit def thisContext: Context

    Permalink
  26. def toString(): String

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

    Permalink

    Updates the value in the context

    Updates the value in the context

    name

    the key

    value

    the new value to set

  28. final def wait(): Unit

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

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

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

    Permalink

    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