View Javadoc

1   package org.slf4j.impl;
2   
3   import org.slf4j.spi.MDCAdapter;
4   
5   
6   /**
7    * This implementation is bound to {@link LogbackMDCAdapter}.
8    *
9    * @author Ceki Gülcü
10   */
11  public class StaticMDCBinder {
12  
13    
14    /**
15     * The unique instance of this class.
16     */
17    public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();
18  
19    private StaticMDCBinder() {
20    }
21    
22    /**
23     * Currently this method always returns an instance of 
24     * {@link StaticMDCBinder}.
25     */
26    public MDCAdapter getMDCA() {
27       return new LogbackMDCAdapter();
28    }
29    
30    public String  getMDCAdapterClassStr() {
31      return LogbackMDCAdapter.class.getName();
32    }
33  }