Method Summary |
|
final public static Context | enter(Context context) Enters the specified context.
Parameters: context - the context being entered. |
final public static Context | enter(Class contextType) Enters a factory produced context of specified type to be recycled
after
Context.exit exiting .
This method is called by the static enter() method
of specialized contexts. |
abstract protected void | enterAction() The action to be performed after this context becomes the current
context. |
public static Context | exit() Exits the current context (the
Context.getOuter outer context
becomes the current context). |
final public static void | exit(Context ctx) |
abstract protected void | exitAction() The action to be performed before this context is no more the current
context. |
final AllocatorContext | getAllocatorContext() Returns the allocator context used while in this context (shortcut). |
public static Context | getCurrent() Returns the current context for the current thread. |
final public Context | getOuter() Returns the outer context of this context or null
if
Context.ROOT . |
final public Thread | getOwner() Returns the current owner of this context. |
protected static void | setCurrent(ConcurrentContext context) Sets the current context, used by
ConcurrentContext exclusively. |
public String | toString() Returns the string representation of this context (default
"Instance of " + this.getClass().getName() ). |