Gets the value in the current context for name.
Gets the value in the current context for name.
the value to return
the key to look up
T
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.
Gets the value back in an Option
Gets the value back in an Option
the value to return
the key to look up
Option[T]
Gets the value back or returns the default.
Gets the value back or returns the default.
the value to return
the key to look up
the value to return if the key is not found
T
True if within a context
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.
contains a context instance upon instantiation
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.
Updates the value in the context
Updates the value in the context
the type
the key
the new value to set
Updates the value in the context
Updates the value in the context
the key
the new value to set
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.
the value returned by the function
to invoke within the context
T