staticmdcbinder.java

来自「Java开发最新的日志记录工具slf4j的源码」· Java 代码 · 共 36 行

JAVA
36
字号
package org.slf4j.impl;

import org.slf4j.spi.MDCAdapter;


/**
 * This class is only a stub. Real implementations are found in 
 * each SLF4J binding project, e.g. slf4j-nop, slf4j-log4j12 etc.
 *
 * @author Ceki Gülcü
 */
public class StaticMDCBinder {

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

  private StaticMDCBinder() {
    throw new UnsupportedOperationException("This code should never make it into the jar");
  }
  
  /**
   * Currently this method always returns an instance of 
   * {@link StaticMDCBinder}.
   */
  public MDCAdapter getMDCA() {
    throw new UnsupportedOperationException("This code should never make it into the jar");
  }
  
  public String  getMDCAdapterClassStr() {
    throw new UnsupportedOperationException("This code should never make it into the jar");
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?