public static enum AgentBuilder.PoolStrategy.Eager extends Enum<AgentBuilder.PoolStrategy.Eager> implements AgentBuilder.PoolStrategy
A type locator that resolves all type descriptions eagerly.
The returned type pool uses a TypePool.CacheProvider.Simple and the
ClassFileLocator that is provided by the builder's AgentBuilder.LocationStrategy.
AgentBuilder.PoolStrategy.ClassLoading, AgentBuilder.PoolStrategy.Default, AgentBuilder.PoolStrategy.Eager, AgentBuilder.PoolStrategy.ExtraLazy, 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 | Method and Description |
|---|---|
TypePool |
typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader)
Creates a type pool for a given class file locator.
|
TypePool |
typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader,
String name)
Creates a type pool for a given class file locator.
|
static AgentBuilder.PoolStrategy.Eager |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.PoolStrategy.Eager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.PoolStrategy.Eager EXTENDED
TypePool.Default.ReaderMode.EXTENDEDpublic static final AgentBuilder.PoolStrategy.Eager FAST
TypePool.Default.ReaderMode.FASTpublic static AgentBuilder.PoolStrategy.Eager[] values()
for (AgentBuilder.PoolStrategy.Eager c : AgentBuilder.PoolStrategy.Eager.values()) System.out.println(c);
public static AgentBuilder.PoolStrategy.Eager valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic TypePool typePool(ClassFileLocator classFileLocator, @MaybeNull 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 or null if the boot loader.public TypePool typePool(ClassFileLocator classFileLocator, @MaybeNull ClassLoader classLoader, String name)
typePool in interface AgentBuilder.PoolStrategyclassFileLocator - The class file locator to use.classLoader - The class loader for which the class file locator
was created or null if the boot loader.name - The name of the currently instrumented type.Copyright © 2014–2025. All rights reserved.