| Modifier and Type | Field and Description |
|---|---|
| private final ReentrantLock | |
| private static final ReentrantLock | |
| private final HashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | generateProxy(Class<?> requestedClass, ServiceLocatorImpl locator, ActiveDescriptor<T> root, ServiceHandleImpl<T> handle, Injectee injectee)
|
| public void | |
| private <T> T | secureCreate(final Class<?> superclass, final Class<?>[] interfaces, final MethodHandler callback, boolean useJDKProxy, ServiceLocator
This is put into the WeakMap to make sure that IF this
map should leak that it will leak big, making it easier to detect 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. |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| proxyCreationLock | back to summary |
|---|---|
| private static final ReentrantLock proxyCreationLock | |
| superClassToDelegator | back to summary |
|---|---|
| private final HashMap<ClassLoader, DelegatingClassLoader> superClassToDelegator | |
| ProxyUtilities | back to summary |
|---|---|
| public ProxyUtilities() | |
| generateProxy | back to summary |
|---|---|
public <T> T generateProxy(Class<?> requestedClass, ServiceLocatorImpl locator, ActiveDescriptor<T> root, ServiceHandleImpl<T> handle, Injectee injectee)
| |
| releaseCache | back to summary |
|---|---|
| public void releaseCache() | |
| secureCreate | back to summary |
|---|---|
| private <T> T secureCreate(final Class<?> superclass, final Class<?>[] interfaces, final 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. See MemoryTest
| |