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

io.lsn.java.common.stopwatch.StopwatchLogFactory Maven / Gradle / Ivy

package io.lsn.java.common.stopwatch;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Patryk Szlagowski 
 */
public class StopwatchLogFactory {

    private final static Map instances = new HashMap<>();

    /**
     * get instance by section name
     * @param section
     * @return
     */
    public final static StopwatchLog getInstance(String section) {
        if (!instances.containsKey(section)) {
            instances.put(section, new StopwatchLog(section));
        }

        return instances.get(section);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy