public static class AgentBuilder.TypeLocator.WithTypePoolCache.Simple extends AgentBuilder.TypeLocator.WithTypePoolCache
AgentBuilder.TypeLocator.WithTypePoolCache (note documentation of the linked class) that is based on a
ConcurrentMap. It is the responsibility of the type locator's user to avoid the type locator from leaking memory.AgentBuilder.TypeLocator.WithTypePoolCache.SimpleAgentBuilder.TypeLocator.ClassLoading, AgentBuilder.TypeLocator.Default, AgentBuilder.TypeLocator.WithTypePoolCachereaderMode| Constructor and Description |
|---|
Simple(ConcurrentMap<? super ClassLoader,TypePool.CacheProvider> cacheProviders)
Creates a new type 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 type 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() |
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.TypeLocator.WithTypePoolCachelocate in class AgentBuilder.TypeLocator.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.TypeLocator.WithTypePoolCachepublic int hashCode()
hashCode in class AgentBuilder.TypeLocator.WithTypePoolCacheCopyright © 2014–2016. All rights reserved.