public static class ClassFileLocator.AgentBased extends Object implements ClassFileLocator
Modifier and Type | Class and Description |
---|---|
protected static class |
ClassFileLocator.AgentBased.ExtractionClassFileTransformer
A non-operational class file transformer that remembers the binary format of a given class.
|
ClassFileLocator.AgentBased, ClassFileLocator.Compound, ClassFileLocator.Default
CLASS_FILE_EXTENSION
Constructor and Description |
---|
AgentBased(Instrumentation instrumentation,
ClassLoader classLoader)
Creates an agent-based class file locator.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.BinaryRepresentation |
classFileFor(TypeDescription typeDescription)
Locates the class file for a given type and returns the binary data of the class file.
|
boolean |
equals(Object other) |
static ClassFileLocator |
fromInstalledAgent(ClassLoader classLoader)
Returns an agent-based class file locator for the given class loader and an already installed
Byte Buddy agent.
|
int |
hashCode() |
String |
toString() |
public AgentBased(Instrumentation instrumentation, ClassLoader classLoader)
instrumentation
- The instrumentation to use for looking up a class file implementation.classLoader
- The class loader that is expected to load the looked-up a class.public static ClassFileLocator fromInstalledAgent(ClassLoader classLoader)
classLoader
- The class loader that is expected to load the looked-up a class.public TypeDescription.BinaryRepresentation classFileFor(TypeDescription typeDescription)
ClassFileLocator
classFileFor
in interface ClassFileLocator
typeDescription
- The description of the type for which a class file is to be located.Copyright © 2014. All rights reserved.