|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.services.context.ContextService
A set of static methods to supply easier access to contexts.
Field Summary | |
private java.util.HashSet |
allContexts
|
private HeaderPrintWriter |
errorStream
|
private static ContextService |
factory
|
(package private) java.lang.ThreadLocal |
threadContextList
Maintains a list of all the contexts that this thread has created and/or used. |
Constructor Summary | |
ContextService()
|
Method Summary | |
private boolean |
addToThreadList(java.lang.Thread me,
ContextManager associateCM)
|
static Context |
getContext(java.lang.String contextId)
Find the context with the given name in the context service factory loaded for the system. |
static Context |
getContextOrNull(java.lang.String contextId)
Find the context with the given name in the context service factory loaded for the system. |
ContextManager |
getCurrentContextManager()
Get current Context Manager |
static ContextService |
getFactory()
|
ContextManager |
newContextManager()
It's up to the caller to track this context manager and set it in the context manager list using setCurrentContextManager. |
void |
notifyAllActiveThreads(Context c)
|
(package private) void |
removeContext(ContextManager cm)
|
void |
resetCurrentContextManager(ContextManager cm)
|
void |
setCurrentContextManager(ContextManager cm)
|
static void |
stop()
So it can be given to us and taken away... |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static ContextService factory
private HeaderPrintWriter errorStream
final java.lang.ThreadLocal threadContextList
There are two cases we are trying to optimise.
private final java.util.HashSet allContexts
Constructor Detail |
public ContextService()
Method Detail |
public static void stop()
public static ContextService getFactory()
public static Context getContext(java.lang.String contextId)
public static Context getContextOrNull(java.lang.String contextId)
public ContextManager getCurrentContextManager()
public void resetCurrentContextManager(ContextManager cm)
private boolean addToThreadList(java.lang.Thread me, ContextManager associateCM)
public void setCurrentContextManager(ContextManager cm)
public ContextManager newContextManager()
public void notifyAllActiveThreads(Context c)
void removeContext(ContextManager cm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |