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

net.n2oapp.framework.config.io.MetadataParamHolder Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
package net.n2oapp.framework.config.io;

import java.util.Collections;
import java.util.Map;

/**
 * Хранение параметров метаданной в рамках одного потока
 */
public class MetadataParamHolder {

    private static final ThreadLocal> threadLocalScope = new ThreadLocal<>();

    public final static Map getParams() {
        return threadLocalScope.get() == null ? Collections.emptyMap() : threadLocalScope.get();
    }

    public final static void setParams(Map params) {
        threadLocalScope.set(params);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy