
org.slf4j.helpers.NOPMakerAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pax-logging-api Show documentation
Show all versions of pax-logging-api Show documentation
The Pax Logging API Library is to allow for the Pax Logging Service to be reloaded without stopping the many
dependent bundles. It also contains the OSGi Log Service API and the Knopflerfish Log API.
package org.slf4j.helpers;
import java.util.Map;
import org.slf4j.spi.MDCAdapter;
/**
* This adapter is an empty implementation of the {@link MDCAdapter} interface.
* It is used for all logging systems which do not support mapped
* diagnostic contexts such as JDK14, simple and NOP.
*
* @author Ceki Gülcü
*
* @since 1.4.1
*/
public class NOPMakerAdapter implements MDCAdapter {
public void clear() {
}
public String get(String key) {
return null;
}
public void put(String key, String val) {
}
public void remove(String key) {
}
public Map getCopyOfContextMap() {
return null;
}
public void setContextMap(Map contextMap) {
// NOP
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy