public static class AgentBuilder.BinaryLocator.WithTypePoolCache.Simple extends AgentBuilder.BinaryLocator.WithTypePoolCache
AgentBuilder.BinaryLocator.WithTypePoolCache (note documentation of the linked class) that is based on a
ConcurrentMap. It is the responsibility of the binary locator's user to avoid the binary locator from leaking memory.AgentBuilder.BinaryLocator.WithTypePoolCache.SimpleAgentBuilder.BinaryLocator.ClassLoading, AgentBuilder.BinaryLocator.Default, AgentBuilder.BinaryLocator.WithTypePoolCachereaderMode| Constructor and Description |
|---|
Simple(ConcurrentMap<? super ClassLoader,TypePool.CacheProvider> cacheProviders)
Creates a new binary locator that caches a cache provider per class loader in a concurrent map.
|
Simple(TypePool.Default.ReaderMode readerMode,
ConcurrentMap<? super ClassLoader,TypePool.CacheProvider> cacheProviders)
Creates a new binary locator that caches a cache provider per class loader in a concurrent map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int |
hashCode() |
protected TypePool.CacheProvider |
locate(ClassLoader classLoader)
Locates a cache provider for a given class loader.
|
String |
toString() |
classFileLocator, typePoolpublic Simple(ConcurrentMap<? super ClassLoader,TypePool.CacheProvider> cacheProviders)
TypePool.Default.ReaderMode.cacheProviders - The concurrent map that is used for storing a cache provider per class loader.public Simple(TypePool.Default.ReaderMode readerMode, ConcurrentMap<? super ClassLoader,TypePool.CacheProvider> cacheProviders)
readerMode - The reader mode to use for parsing a class file.cacheProviders - The concurrent map that is used for storing a cache provider per class loader.protected TypePool.CacheProvider locate(ClassLoader classLoader)
AgentBuilder.BinaryLocator.WithTypePoolCachelocate in class AgentBuilder.BinaryLocator.WithTypePoolCacheclassLoader - The class loader for which to locate a cache. This class loader might be null to represent the bootstrap loader.public boolean equals(Object object)
equals in class AgentBuilder.BinaryLocator.WithTypePoolCachepublic int hashCode()
hashCode in class AgentBuilder.BinaryLocator.WithTypePoolCacheCopyright © 2014–2016. All rights reserved.