Class ProxyReplacerTransformer
- java.lang.Object
-
- org.hotswap.agent.plugin.spring.getbean.ProxyReplacerTransformer
-
public class ProxyReplacerTransformer extends java.lang.ObjectTransforms Spring classes so the beans go through this plugin. The returned beans are proxied and tracked. The bean proxies can be reset and reloaded from Spring.- Author:
- Erki Ehtla
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFACTORY_METHOD_NAME
-
Constructor Summary
Constructors Constructor Description ProxyReplacerTransformer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidreplaceBeanWithProxy(org.hotswap.agent.javassist.CtClass ctClass)static voidreplaceCglibFastClassGenerator(org.hotswap.agent.javassist.CtClass ctClass)Disable cache usage in FastClass.Generator to avoid 'IllegalArgumentException: Protected method' exceptionsstatic voidreplaceSpringFastClassGenerator(org.hotswap.agent.javassist.CtClass ctClass)Disable cache usage in FastClass.Generator to avoid 'IllegalArgumentException: Protected method' exceptions
-
-
-
Field Detail
-
FACTORY_METHOD_NAME
public static final java.lang.String FACTORY_METHOD_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
replaceBeanWithProxy
@OnClassLoadEvent(classNameRegexp="org.springframework.beans.factory.support.DefaultListableBeanFactory") public static void replaceBeanWithProxy(org.hotswap.agent.javassist.CtClass ctClass) throws org.hotswap.agent.javassist.NotFoundException, org.hotswap.agent.javassist.CannotCompileException- Parameters:
ctClass-- Throws:
org.hotswap.agent.javassist.NotFoundExceptionorg.hotswap.agent.javassist.CannotCompileException
-
replaceSpringFastClassGenerator
@OnClassLoadEvent(classNameRegexp="org.springframework.cglib.reflect.FastClass.Generator") public static void replaceSpringFastClassGenerator(org.hotswap.agent.javassist.CtClass ctClass) throws org.hotswap.agent.javassist.NotFoundException, org.hotswap.agent.javassist.CannotCompileExceptionDisable cache usage in FastClass.Generator to avoid 'IllegalArgumentException: Protected method' exceptions- Parameters:
ctClass-- Throws:
org.hotswap.agent.javassist.NotFoundExceptionorg.hotswap.agent.javassist.CannotCompileException
-
replaceCglibFastClassGenerator
@OnClassLoadEvent(classNameRegexp="net.sf.cglib.reflect.FastClass.Generator") public static void replaceCglibFastClassGenerator(org.hotswap.agent.javassist.CtClass ctClass) throws org.hotswap.agent.javassist.NotFoundException, org.hotswap.agent.javassist.CannotCompileExceptionDisable cache usage in FastClass.Generator to avoid 'IllegalArgumentException: Protected method' exceptions- Parameters:
ctClass-- Throws:
org.hotswap.agent.javassist.NotFoundExceptionorg.hotswap.agent.javassist.CannotCompileException
-
-