KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > slf4j > helpers > NOPMakerAdapter


1 package org.slf4j.helpers;
2
3 import org.slf4j.spi.MDCAdapter;
4
5 /**
6  * This adapter is an empty implementation of the {@link MDCAdapter} interface.
7  * It is used for all logging systems which do not support mapped
8  * diagnostic contexts such as JDK14, simple and NOP.
9  *
10  * @author Ceki Gülcü
11  *
12  * @since 1.4.1
13  */

14 public class NOPMakerAdapter implements MDCAdapter {
15
16   public void clear() {
17   }
18
19   public String JavaDoc get(String JavaDoc key) {
20     return null;
21   }
22
23   public void put(String JavaDoc key, String JavaDoc val) {
24   }
25
26   public void remove(String JavaDoc key) {
27   }
28
29 }
30
Popular Tags