public class SnapshotInstrumentor extends AttachableClassFileTransformer implements ClassFileTransformer
| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshotInstrumentor.BridgedTask |
static class |
SnapshotInstrumentor.DefaultTask |
static class |
SnapshotInstrumentor.Task |
lock| Constructor and Description |
|---|
SnapshotInstrumentor(AgentConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
AttachableClassFileTransformer |
attach(Instrumentation inst) |
void |
detach(Instrumentation inst) |
Collection<Class<?>> |
filterClassesToRetransform(Class<?>[] loaded) |
Collection<Class<?>> |
getClassesToRetransform() |
protected void |
initialize(Instrumentation inst) |
byte[] |
instrument(byte[] buffer,
Class<?> clazz,
ClassLoader loader) |
byte[] |
instrument(org.objectweb.asm.tree.ClassNode classNode,
Class<?> clazz,
ClassLoader loader) |
byte[] |
instrument(String className,
Class<?> clazz,
ClassLoader loader) |
protected void |
shutdown(Instrumentation inst) |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
classesToRetransformpublic SnapshotInstrumentor(AgentConfiguration config)
public AttachableClassFileTransformer attach(Instrumentation inst)
attach in class AttachableClassFileTransformerprotected void initialize(Instrumentation inst)
public void detach(Instrumentation inst)
detach in class AttachableClassFileTransformerprotected void shutdown(Instrumentation inst)
public Collection<Class<?>> filterClassesToRetransform(Class<?>[] loaded)
filterClassesToRetransform in class AttachableClassFileTransformerpublic Collection<Class<?>> getClassesToRetransform()
getClassesToRetransform in class AttachableClassFileTransformerpublic byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform in interface ClassFileTransformerIllegalClassFormatExceptionpublic byte[] instrument(String className, Class<?> clazz, ClassLoader loader) throws IOException
IOExceptionpublic byte[] instrument(byte[] buffer,
Class<?> clazz,
ClassLoader loader)
public byte[] instrument(org.objectweb.asm.tree.ClassNode classNode,
Class<?> clazz,
ClassLoader loader)
Copyright © 2020. All rights reserved.