public static enum AgentBuilder.PoolStrategy.ClassLoading extends java.lang.Enum<AgentBuilder.PoolStrategy.ClassLoading> implements AgentBuilder.PoolStrategy
A type locator that attempts loading a type if it cannot be located by the underlying lazy type pool.
The returned type pool uses a TypePool.CacheProvider.Simple and the
ClassFileLocator that is provided by the builder's AgentBuilder.LocationStrategy. Any types
are loaded via the instrumented type's ClassLoader.
AgentBuilder.PoolStrategy.ClassLoading, AgentBuilder.PoolStrategy.Default, AgentBuilder.PoolStrategy.Eager, AgentBuilder.PoolStrategy.WithTypePoolCache| Enum Constant and Description |
|---|
EXTENDED
A type locator that parses the code segment of each method for extracting information about parameter
names even if they are not explicitly included in a class file.
|
FAST
A type locator that skips the code segment of each method and does therefore not extract information
about parameter names.
|
| Modifier and Type | Field and Description |
|---|---|
private TypePool.Default.ReaderMode |
readerMode
The reader mode to apply by this type locator.
|
| Modifier and Type | Method and Description |
|---|---|
TypePool |
typePool(ClassFileLocator classFileLocator,
java.lang.ClassLoader classLoader)
Creates a type pool for a given class file locator.
|
static AgentBuilder.PoolStrategy.ClassLoading |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.PoolStrategy.ClassLoading[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.PoolStrategy.ClassLoading EXTENDED
TypePool.Default.ReaderMode.EXTENDEDpublic static final AgentBuilder.PoolStrategy.ClassLoading FAST
TypePool.Default.ReaderMode.FASTprivate final TypePool.Default.ReaderMode readerMode
public static AgentBuilder.PoolStrategy.ClassLoading[] values()
for (AgentBuilder.PoolStrategy.ClassLoading c : AgentBuilder.PoolStrategy.ClassLoading.values()) System.out.println(c);
public static AgentBuilder.PoolStrategy.ClassLoading valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic TypePool typePool(ClassFileLocator classFileLocator, java.lang.ClassLoader classLoader)
typePool in interface AgentBuilder.PoolStrategyclassFileLocator - The class file locator to use.classLoader - The class loader for which the class file locator was created.