public boolean isProxy(Object proxy) {
return interceptors.containsKey(proxy);
}
public synchronized ObjectName getProxyTarget(Object proxy) {
ProxyMethodInterceptor methodInterceptor = (ProxyMethodInterceptor) interceptors.remove(proxy);
if (methodInterceptor == null) {
return null;
}
return methodInterceptor.getObjectName();
}