io.vrap.rmf.base.client.MDCContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmf-java-base Show documentation
Show all versions of rmf-java-base Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package io.vrap.rmf.base.client;
import java.util.Map;
import org.slf4j.MDC;
public class MDCContext implements Context {
final Map contextMap;
public MDCContext() {
contextMap = MDC.getCopyOfContextMap();
}
public MDCContext(Map contextMap) {
this.contextMap = contextMap;
}
@Override
public Map getValue() {
return contextMap;
}
}