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

com.github.springbootPlus.excel.parsing.ExcelContextHolder Maven / Gradle / Ivy

package com.github.springbootPlus.excel.parsing;

import java.util.Map;

public class ExcelContextHolder {

    private static ThreadLocal> context = new ThreadLocal>();

    public static void setContext(Map param) {
        context.set(param);
    }

    public static Map getContext() {
        return context.get();
    }

    public static Object getValue(String key) {
        return context.get() == null ? null : context.get().get(key);
    }

    public static void removeContext() {
        context.remove();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy