|
JBoss Logging 3.3.2.Final | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.logging.MDC
public final class MDC
Mapped diagnostic context. Each log provider implementation may behave different.
| Method Summary | |
|---|---|
static void |
clear()
Clears the message diagnostics context. |
static java.lang.Object |
get(java.lang.String key)
Returns the value for the key or null if no value was found. |
static java.util.Map<java.lang.String,java.lang.Object> |
getMap()
Returns the map from the context. |
static java.lang.Object |
put(java.lang.String key,
java.lang.Object val)
Puts the value onto the context. |
static void |
remove(java.lang.String key)
Removes the value from the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object put(java.lang.String key,
java.lang.Object val)
key - the key for the valueval - the value
null if no value was setpublic static java.lang.Object get(java.lang.String key)
null if no value was found.
key - the key to lookup the value for
null if not foundpublic static void remove(java.lang.String key)
key - the key of the value to removepublic static java.util.Map<java.lang.String,java.lang.Object> getMap()
Note that in most implementations this is an expensive operation and should be used sparingly.
nullpublic static void clear()
|
JBoss Logging 3.3.2.Final | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||