Package org.slf4j.impl

Source Code of org.slf4j.impl.StaticMDCBinder

package org.slf4j.impl;

import org.slf4j.helpers.NOPMDCAdapter;
import org.slf4j.spi.MDCAdapter;


/**
* This implementation is bound to {@link NOPMDCAdapter}.
*
* @author Ceki Gülcü
*/
public class StaticMDCBinder {

 
  /**
   * The unique instance of this class.
   */
  public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();

  private StaticMDCBinder() {
  }
 
  /**
   * Currently this method always returns an instance of
   * {@link StaticMDCBinder}.
   */
  public MDCAdapter getMDCA() {
     return new NOPMDCAdapter();
  }
 
  public String  getMDCAdapterClassStr() {
    return NOPMDCAdapter.class.getName();
  }
}
TOP

Related Classes of org.slf4j.impl.StaticMDCBinder

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.