|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log4j.MDC
public class MDC
Wrap the PaxContext with MDC api. PaxContext is derived from original MDC.
| Constructor Summary | |
|---|---|
MDC()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
get(java.lang.String key)
Get the context identified by the key parameter. |
static java.util.Map |
getContext()
Get the current thread's MDC as a map. |
static void |
put(java.lang.String key,
java.lang.Object o)
Put a context value (the o parameter) as identified
with the key parameter into the current thread's
context map. |
static void |
remove(java.lang.String key)
Remove the the context identified by the key
parameter. |
static void |
setBundleContext(org.osgi.framework.BundleContext ctx)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MDC()
| Method Detail |
|---|
public static void setBundleContext(org.osgi.framework.BundleContext ctx)
public static void put(java.lang.String key,
java.lang.Object o)
o parameter) as identified
with the key parameter into the current thread's
context map.
If the current thread does not have a context map it is created as a side effect.
public static java.lang.Object get(java.lang.String key)
key parameter.
This method has no side effects.
public static void remove(java.lang.String key)
key
parameter.
public static java.util.Map getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||