All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.utils.log.MappedDiagnosticContextFactory Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.firefly.utils.log;

import com.firefly.utils.ServiceUtils;

/**
 * @author Pengtao Qiu
 */
public class MappedDiagnosticContextFactory {

    private static MappedDiagnosticContextFactory ourInstance = new MappedDiagnosticContextFactory();

    public static MappedDiagnosticContextFactory getInstance() {
        return ourInstance;
    }

    private MappedDiagnosticContext mappedDiagnosticContext;

    private MappedDiagnosticContextFactory() {
        mappedDiagnosticContext = ServiceUtils.loadService(MappedDiagnosticContext.class, new ThreadLocalMappedDiagnosticContext());
    }

    public MappedDiagnosticContext getMappedDiagnosticContext() {
        return mappedDiagnosticContext;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy