protected static class ClassFileLocator.AgentBased.ExtractionClassFileTransformer extends Object implements ClassFileTransformer
| Modifier | Constructor and Description |
|---|---|
protected |
ExtractionClassFileTransformer(ClassLoader classLoader,
TypeDescription typeDescription)
Creates a class file transformer for the purpose of extraction.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getClassFile()
Returns the binary representation of the class file that was looked up.
|
String |
toString() |
byte[] |
transform(ClassLoader classLoader,
String internalName,
Class<?> redefinedType,
ProtectionDomain protectionDomain,
byte[] classFile) |
protected ExtractionClassFileTransformer(ClassLoader classLoader, TypeDescription typeDescription)
classLoader - The class loader that is expected to have loaded the looked-up a class.typeDescription - A description of the type to look up.public byte[] transform(ClassLoader classLoader, String internalName, Class<?> redefinedType, ProtectionDomain protectionDomain, byte[] classFile) throws IllegalClassFormatException
transform in interface ClassFileTransformerIllegalClassFormatExceptionprotected byte[] getClassFile()
null if no such class file could
be located.Copyright © 2014. All rights reserved.