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