001    package com.khubla.pragmatach.plugin.jsp;
002    
003    import java.util.concurrent.ConcurrentHashMap;
004    
005    /**
006     * @author tome
007     */
008    public class JSPClassCache {
009       /**
010        * classes
011        */
012       private final ConcurrentHashMap<String, Class<?>> concurrentHashMap = new ConcurrentHashMap<String, Class<?>>();
013    
014       /**
015        * add
016        */
017       public void add(Class<?> clazz, String name) {
018          concurrentHashMap.put(name, clazz);
019       }
020    
021       /**
022        * find
023        */
024       public Class<?> find(String name) {
025          return concurrentHashMap.get(name);
026       }
027    }