001 002package io.vrap.rmf.base.client; 003 004import java.util.Map; 005 006import org.slf4j.MDC; 007 008public class MDCContext implements Context { 009 final Map<String, String> contextMap; 010 011 public MDCContext() { 012 contextMap = MDC.getCopyOfContextMap(); 013 } 014 015 public MDCContext(Map<String, String> contextMap) { 016 this.contextMap = contextMap; 017 } 018 019 @Override 020 public Map<String, String> getValue() { 021 return contextMap; 022 } 023}