Class EnhancerProxyCreater
- java.lang.Object
-
- org.hotswap.agent.plugin.spring.getbean.EnhancerProxyCreater
-
public class EnhancerProxyCreater extends java.lang.ObjectCreates a Cglib proxy instance along with the neccessary Callback classes. Uses either the repackaged version of Cglib (Spring >= 3.2) or the stand-alone version (Spring < 3.2).- Author:
- Erki Ehtla
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCGLIB_PACKAGEstatic java.lang.StringSPRING_PACKAGE
-
Constructor Summary
Constructors Constructor Description EnhancerProxyCreater(java.lang.ClassLoader loader, java.security.ProtectionDomain pd)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectcreateProxy(java.lang.Object beanFactry, java.lang.Object bean, java.lang.Class<?>[] paramClasses, java.lang.Object[] paramValues)Creates a Cglib proxy instance along with the neccessary Callback classes, if those have not been created already.static booleanisSupportedCglibProxy(java.lang.Object bean)
-
-
-
Field Detail
-
SPRING_PACKAGE
public static final java.lang.String SPRING_PACKAGE
- See Also:
- Constant Field Values
-
CGLIB_PACKAGE
public static final java.lang.String CGLIB_PACKAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSupportedCglibProxy
public static boolean isSupportedCglibProxy(java.lang.Object bean)
-
createProxy
public static java.lang.Object createProxy(java.lang.Object beanFactry, java.lang.Object bean, java.lang.Class<?>[] paramClasses, java.lang.Object[] paramValues)Creates a Cglib proxy instance along with the neccessary Callback classes, if those have not been created already. Uses either the repackaged version of Cglib (Spring >= 3.2) or the stand-alone version (Spring < 3.2).- Parameters:
beanFactry- Spring beanFactorybean- Spring beanparamClasses- Parameter Classes of the Spring beanFactory method which returned the bean. The method is named ProxyReplacer.FACTORY_METHOD_NAMEparamValues- Parameter values of the Spring beanFactory method which returned the bean. The method is named ProxyReplacer.FACTORY_METHOD_NAME- Returns:
-
-