mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 16:56:15 +10:00
[유치수] [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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user