org.jboss.slf4j
Class JBossMDCAdapter

java.lang.Object
  extended by org.jboss.slf4j.JBossMDCAdapter
All Implemented Interfaces:
org.slf4j.spi.MDCAdapter

public class JBossMDCAdapter
extends Object
implements org.slf4j.spi.MDCAdapter

Adapted from the corresponding slf4j-log4j adapter.

Version:
$Revision: 2784 $
Author:
Dimitris Andreadis

Constructor Summary
JBossMDCAdapter()
           
 
Method Summary
 void clear()
           
 String get(String key)
           
 Map getCopyOfContextMap()
           
 void put(String key, String val)
           
 void remove(String key)
           
 void setContextMap(Map contextMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossMDCAdapter

public JBossMDCAdapter()
Method Detail

clear

public void clear()
Specified by:
clear in interface org.slf4j.spi.MDCAdapter

get

public String get(String key)
Specified by:
get in interface org.slf4j.spi.MDCAdapter

put

public void put(String key,
                String val)
Specified by:
put in interface org.slf4j.spi.MDCAdapter

remove

public void remove(String key)
Specified by:
remove in interface org.slf4j.spi.MDCAdapter

getCopyOfContextMap

public Map getCopyOfContextMap()
Specified by:
getCopyOfContextMap in interface org.slf4j.spi.MDCAdapter

setContextMap

public void setContextMap(Map contextMap)
Specified by:
setContextMap in interface org.slf4j.spi.MDCAdapter


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.