org.slf4j.impl.StaticMDCBinder Maven / Gradle / Ivy
package org.slf4j.impl;
import org.slf4j.helpers.NOPMDCAdapter;
import org.slf4j.spi.MDCAdapter;
/**
* This implementation is bound to {@link NOPMDCAdapter}.
*
* @author Luminous(BGLuminous)
* @since 1.0.0
*/
@SuppressWarnings("unused")
public class StaticMDCBinder {
/** The unique instance of this class. */
public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();
/** Constructor Private */
private StaticMDCBinder() {}
/**
* Return the singleton of this class.
*
* @return the StaticMDCBinder singleton
* @since 1.7.14
*/
public static StaticMDCBinder getSingleton() {
return SINGLETON;
}
/**
* Currently this method always returns an instance of {@link StaticMDCBinder}.
*
* @return MDCA
*/
public MDCAdapter getMDCA() {
return new NOPMDCAdapter();
}
/**
* Get MDC adapter class name
*
* @return class package path and name
*/
public String getMDCAdapterClassStr() {
return NOPMDCAdapter.class.getName();
}
}