[유치수] [NOBTS] add interceptor debugging code.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@532 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2012-08-22 10:32:28 +00:00
parent e13abc08b5
commit 01c0bc2e62
10 changed files with 258 additions and 208 deletions
@@ -5,14 +5,14 @@ import java.util.concurrent.ConcurrentMap;
public class InterceptorRegistry {
private static final ConcurrentMap<String, Interceptor> INTERCEPTOR_MAP = new ConcurrentHashMap<String, Interceptor>(256);
private static final ConcurrentMap<Integer, Interceptor> INTERCEPTOR_MAP = new ConcurrentHashMap<Integer, Interceptor>(256);
public static void addInterceptor(String className, Interceptor interceptor) {
INTERCEPTOR_MAP.put(className, interceptor);
public static void addInterceptor(Integer key, Interceptor interceptor) {
INTERCEPTOR_MAP.put(key, interceptor);
}
public static Interceptor getInterceptor(String className) {
return INTERCEPTOR_MAP.get(className);
public static Interceptor getInterceptor(int key) {
return INTERCEPTOR_MAP.get(key);
}
}