本文整理汇总了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();
}
}
示例2: getMDCAdapterClassStr
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String getMDCAdapterClassStr() {
return NOPMDCAdapter.class.getName();
}
示例3: getMDCAdapterClassStr
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String getMDCAdapterClassStr() {
return NOPMDCAdapter.class.getName();
}
示例4: getMDCAdapterClassStr
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String getMDCAdapterClassStr() {
return NOPMDCAdapter.class.getName();
}
示例5: getMDCA
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* Currently this method always returns an instance of {@link NOPMDCAdapter}.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
示例6: getMDCAdapterClassStr
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
public String getMDCAdapterClassStr() {
return NOPMDCAdapter.class.getName();
}
示例7: getMDCA
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* A stub for slf4j.
*
* @return NOPMDCAdapter.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
示例8: getMDCAdapterClassStr
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* A stub for slf4j.
*
* @return NOPMDCAdapter class name.
*/
public String getMDCAdapterClassStr() {
return NOPMDCAdapter.class.getName();
}
示例9: getMDCA
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* Currently this method always returns an instance of
* {@link StaticMDCBinder}.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
示例10: getMDCA
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* Currently this method always returns an instance of
* {@link StaticMDCBinder}.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
示例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();
}
示例12: getMDCA
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* Currently this method always returns an instance of
* {@link NOPMDCAdapter}.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
示例13: getMDCA
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* Currently this method always returns an instance of
* {@link StaticMDCBinder}.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
示例14: getMDCA
import org.slf4j.helpers.NOPMDCAdapter; //导入依赖的package包/类
/**
* Currently this method always returns an instance of
* {@link NOPMDCAdapter}.
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
示例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();
}