Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Map; public class Main { private static ThreadLocal<Map<String, Object>> chainThreadParamMap = new ThreadLocal<Map<String, Object>>(); public static Object getChainThreadParamValue(String key) { Map<String, Object> paramMap = chainThreadParamMap.get(); if (paramMap != null) { return paramMap.get(key); } return null; } }