public class AgentUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentUtils.SimpleClassFileTransformer |
| Constructor and Description |
|---|
AgentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Instrumentation |
install() |
static void |
redefine(Class<?> clazz,
byte[] classFile) |
static void |
reTransform(Class<?> clazz,
byte[] classFile) |
public static Instrumentation install()
public static void redefine(Class<?> clazz, byte[] classFile) throws ClassNotFoundException, UnmodifiableClassException
public static void reTransform(Class<?> clazz, byte[] classFile) throws UnmodifiableClassException
UnmodifiableClassExceptionCopyright © 2018–2021. All rights reserved.