public static enum AgentBuilder.TypeLocator.ClassLoading extends Enum<AgentBuilder.TypeLocator.ClassLoading> implements AgentBuilder.TypeLocator
A type locator that loads referenced classes instead of describing unloaded versions.
Important: It is important to never query this type locator for the currently instrumented type as this will yield a class loading circularity which aborts any instrumentation with an error.
Warning: Warning, this type locator cannot be used for applying a redefinition as it works on loaded classes only and is agnostic of any way to locate a class file.
AgentBuilder.TypeLocator.ClassLoading, AgentBuilder.TypeLocator.Default, AgentBuilder.TypeLocator.WithTypePoolCache| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
TypePool |
typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader)
Creates a type pool for a given class file locator.
|
static AgentBuilder.TypeLocator.ClassLoading |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.TypeLocator.ClassLoading[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.TypeLocator.ClassLoading INSTANCE
public static AgentBuilder.TypeLocator.ClassLoading[] values()
for (AgentBuilder.TypeLocator.ClassLoading c : AgentBuilder.TypeLocator.ClassLoading.values()) System.out.println(c);
public static AgentBuilder.TypeLocator.ClassLoading 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, ClassLoader classLoader)
AgentBuilder.TypeLocatortypePool in interface AgentBuilder.TypeLocatorclassFileLocator - The class file locator to use.classLoader - The class loader for which the class file locator was created.public String toString()
toString in class Enum<AgentBuilder.TypeLocator.ClassLoading>Copyright © 2014–2016. All rights reserved.