Java tutorial
//package com.java2s; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; public class Main { private static ConcurrentMap<String, Class<?>> mappings = new ConcurrentHashMap(); public static void addClassMapping(String paramString, Class<?> paramClass) { if (paramString == null) { paramString = paramClass.getName(); } mappings.put(paramString, paramClass); } }