当前位置: 首页>>代码示例>>Java>>正文


Java NOPMDCAdapter类代码示例

本文整理汇总了Java中org.slf4j.helpers.NOPMDCAdapter的典型用法代码示例。如果您正苦于以下问题:Java NOPMDCAdapter类的具体用法?Java NOPMDCAdapter怎么用?Java NOPMDCAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NOPMDCAdapter类属于org.slf4j.helpers包,在下文中一共展示了NOPMDCAdapter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of
 * {@link StaticMDCBinder}.
 * @return
 */
public MDCAdapter getMDCA() {
  try {
    return (MDCAdapter) Class.forName(getMDCAdapterClassStr()).newInstance();
  } catch (Exception e) { // NOSONAR we can't log here as we are actually instantiating log here
    System.err.println("Unable to instantiate mdc adapter " + getMDCAdapterClassStr()); // NOSONAR
    e.printStackTrace(); // NOSONAR
    return new NOPMDCAdapter();
  }
}
 
开发者ID:AmadeusITGroup,项目名称:HttpSessionReplacer,代码行数:15,代码来源:StaticMDCBinder.java

示例2: getMDCAdapterClassStr

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String  getMDCAdapterClassStr() {
  return NOPMDCAdapter.class.getName();
}
 
开发者ID:alvanson,项目名称:xltsearch,代码行数:4,代码来源:StaticMDCBinder.java

示例3: getMDCAdapterClassStr

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String getMDCAdapterClassStr() {
    return NOPMDCAdapter.class.getName();
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:4,代码来源:StaticMDCBinder.java

示例4: getMDCAdapterClassStr

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String getMDCAdapterClassStr() {
  return NOPMDCAdapter.class.getName();
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:4,代码来源:StaticMDCBinder.java

示例5: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of {@link NOPMDCAdapter}.
 */
public MDCAdapter getMDCA() {
	return new NOPMDCAdapter();
}
 
开发者ID:nomis,项目名称:slf4j-android,代码行数:7,代码来源:StaticMDCBinder.java

示例6: getMDCAdapterClassStr

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String getMDCAdapterClassStr() {
	return NOPMDCAdapter.class.getName();
}
 
开发者ID:nomis,项目名称:slf4j-android,代码行数:4,代码来源:StaticMDCBinder.java

示例7: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * A stub for slf4j.
 *
 * @return NOPMDCAdapter.
 */
public MDCAdapter getMDCA() {
    return new NOPMDCAdapter();
}
 
开发者ID:dasfoo,项目名称:delern,代码行数:9,代码来源:StaticMDCBinder.java

示例8: getMDCAdapterClassStr

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * A stub for slf4j.
 *
 * @return NOPMDCAdapter class name.
 */
public String getMDCAdapterClassStr() {
    return NOPMDCAdapter.class.getName();
}
 
开发者ID:dasfoo,项目名称:delern,代码行数:9,代码来源:StaticMDCBinder.java

示例9: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of
 * {@link StaticMDCBinder}.
 */
public MDCAdapter getMDCA() {
   return new NOPMDCAdapter();
}
 
开发者ID:alvanson,项目名称:xltsearch,代码行数:8,代码来源:StaticMDCBinder.java

示例10: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of 
 * {@link StaticMDCBinder}.
 */
public MDCAdapter getMDCA() {
   return new NOPMDCAdapter();
}
 
开发者ID:JabJabJab,项目名称:Sledgehammer,代码行数:8,代码来源:StaticMDCBinder.java

示例11: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of 
 * {@link NOPMDCAdapter}.
 * 
 * @return instance of NOPMDCAdapter
 */
public MDCAdapter getMDCA() {
    return new NOPMDCAdapter();
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:10,代码来源:StaticMDCBinder.java

示例12: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of 
 * {@link NOPMDCAdapter}.
 */
public MDCAdapter getMDCA() {
  return new NOPMDCAdapter();
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:8,代码来源:StaticMDCBinder.java

示例13: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of 
 * {@link StaticMDCBinder}.
 */
public MDCAdapter getMDCA() {
    return new NOPMDCAdapter();
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:8,代码来源:StaticMDCBinder.java

示例14: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of
 * {@link NOPMDCAdapter}.
 */
public MDCAdapter getMDCA() {
    return new NOPMDCAdapter();
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:8,代码来源:StaticMDCBinder.java

示例15: getMDCA

import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
 * Currently this method always returns an instance of
 * {@link StaticMDCBinder}.
 * 
 * @return the adapter
 */
public MDCAdapter getMDCA() {
    return new NOPMDCAdapter();
}
 
开发者ID:SSEHUB,项目名称:EASyProducer,代码行数:10,代码来源:StaticMDCBinder.java


注:本文中的org.slf4j.helpers.NOPMDCAdapter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。