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) |
classesToRetransform
public SnapshotInstrumentor(AgentConfiguration config)
public AttachableClassFileTransformer attach(Instrumentation inst)
attach
in class AttachableClassFileTransformer
protected void initialize(Instrumentation inst)
public void detach(Instrumentation inst)
detach
in class AttachableClassFileTransformer
protected void shutdown(Instrumentation inst)
public Collection<Class<?>> filterClassesToRetransform(Class<?>[] loaded)
filterClassesToRetransform
in class AttachableClassFileTransformer
public Collection<Class<?>> getClassesToRetransform()
getClassesToRetransform
in class AttachableClassFileTransformer
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform
in interface ClassFileTransformer
IllegalClassFormatException
public byte[] instrument(String className, Class<?> clazz, ClassLoader loader) throws IOException
IOException
public 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.