|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.log.ContextStack
The ContextStack records the nested context of an application. The context is an application defined characteristeric. For instance a webserver context may be defined as the session that is currently used to connect to server. A application may have context defined by current thread. A applet may have it's context defined by the name of the applet etc.
| Field Summary | |
private static java.lang.ThreadLocal |
c_contextDeprecated. |
private java.util.Stack |
m_stackDeprecated. |
| Constructor Summary | |
ContextStack()Deprecated. |
|
| Method Summary | |
void |
clear()Deprecated. Empty the context stack. |
private java.lang.String |
fix(java.lang.String context)Deprecated. Correct a context string by replacing separators '.' with a '_'. |
java.lang.Object |
get(int index)Deprecated. Get the context at a particular depth. |
static ContextStack |
getCurrentContext()Deprecated. Get the Current ContextStack. |
(package private) static ContextStack |
getCurrentContext(boolean autocreate)Deprecated. Get the Current ContextStack. |
int |
getSize()Deprecated. Get the number of contexts in stack. |
java.lang.Object |
pop()Deprecated. Remove a context from top of stack and return it. |
void |
push(java.lang.Object context)Deprecated. Push the context onto top of context stack. |
void |
set(ContextStack stack)Deprecated. Set the current ContextSet to be equl to other ContextStack. |
java.lang.String |
toString()Deprecated. Format context stack into a string. |
java.lang.String |
toString(int count)Deprecated. Format context stack into a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.ThreadLocal c_context
private java.util.Stack m_stack
| Constructor Detail |
public ContextStack()
| Method Detail |
public static final ContextStack getCurrentContext()
static final ContextStack getCurrentContext(boolean autocreate)
autocreate - true if a ContextStack is to be created if it doesn't existpublic void clear()
public java.lang.Object get(int index)
index - the depth of the context to retrievepublic java.lang.Object pop()
public void push(java.lang.Object context)
context - the context to place on stackpublic void set(ContextStack stack)
stack - the value to copypublic int getSize()
public java.lang.String toString()
public java.lang.String toString(int count)
private java.lang.String fix(java.lang.String context)
context - the un-fixed context
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||