public class ProxyUtilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Object |
proxyCreationLock |
private java.util.HashMap<java.lang.ClassLoader,DelegatingClassLoader> |
superClassToDelegator |
| Constructor and Description |
|---|
ProxyUtilities() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
generateProxy(java.lang.Class<?> requestedClass,
ServiceLocatorImpl locator,
ActiveDescriptor<T> root,
ServiceHandleImpl<T> handle,
Injectee injectee) |
void |
releaseCache() |
private <T> T |
secureCreate(java.lang.Class<?> superclass,
java.lang.Class<?>[] interfaces,
javassist.util.proxy.MethodHandler callback,
boolean useJDKProxy,
ServiceLocator anchor)
We put the anchor as the value even though we don't use it in order to
make it easier to catch memory leaks here.
|
private static final java.lang.Object proxyCreationLock
private final java.util.HashMap<java.lang.ClassLoader,DelegatingClassLoader> superClassToDelegator
private <T> T secureCreate(java.lang.Class<?> superclass,
java.lang.Class<?>[] interfaces,
javassist.util.proxy.MethodHandler callback,
boolean useJDKProxy,
ServiceLocator anchor)
superclass - interfaces - callback - useJDKProxy - anchor - This is put into the WeakMap to make sure that IF this
map should leak that it will leak big, making it easier to detectpublic <T> T generateProxy(java.lang.Class<?> requestedClass,
ServiceLocatorImpl locator,
ActiveDescriptor<T> root,
ServiceHandleImpl<T> handle,
Injectee injectee)
public void releaseCache()