/** * 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(); } }
public String getMDCAdapterClassStr() { return NOPMDCAdapter.class.getName(); }
/** * Currently this method always returns an instance of {@link NOPMDCAdapter}. */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }
/** * A stub for slf4j. * * @return NOPMDCAdapter. */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }
/** * A stub for slf4j. * * @return NOPMDCAdapter class name. */ public String getMDCAdapterClassStr() { return NOPMDCAdapter.class.getName(); }
/** * Currently this method always returns an instance of * {@link StaticMDCBinder}. */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }
/** * Currently this method always returns an instance of * {@link NOPMDCAdapter}. * * @return instance of NOPMDCAdapter */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }
/** * Currently this method always returns an instance of * {@link NOPMDCAdapter}. */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }
/** * Currently this method always returns an instance of * {@link StaticMDCBinder}. * * @return the adapter */ public MDCAdapter getMDCA() { return new NOPMDCAdapter(); }
/** * Returns the adapter class name. * * @return the adapter class name */ public String getMDCAdapterClassStr() { return NOPMDCAdapter.class.getName(); }