@Plugin(name="Proxy", description="Redefines proxies", testedVersions="", expectedVersions="all", supportClass=RedefinitionScheduler.class) public class ProxyPlugin extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
reloadFlag
Flag to check reload status.
|
| Constructor and Description |
|---|
ProxyPlugin() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
transformCglibProxy(Class<?> classBeingRedefined,
byte[] classfileBuffer,
ClassLoader loader,
ClassPool cp) |
static CtClass |
transformDefinitions(CtClass cc)
Modifies Cglib bytecode generators to store the parameters for this plugin
|
static void |
transformJavaProxy(Class<?> classBeingRedefined,
ClassLoader classLoader) |
public static boolean reloadFlag
@OnClassLoadEvent(classNameRegexp="com.sun.proxy.\\$Proxy.*", events=REDEFINE, skipSynthetic=false) public static void transformJavaProxy(Class<?> classBeingRedefined, ClassLoader classLoader)
@OnClassLoadEvent(classNameRegexp=".*", events=REDEFINE, skipSynthetic=false) public static byte[] transformCglibProxy(Class<?> classBeingRedefined, byte[] classfileBuffer, ClassLoader loader, ClassPool cp) throws Exception
Exception@OnClassLoadEvent(classNameRegexp=".*/cglib/.*", skipSynthetic=false) public static CtClass transformDefinitions(CtClass cc) throws Exception
ExceptionCopyright © 2018. All rights reserved.