Class ProxyReplacer
- java.lang.Object
-
- org.hotswap.agent.plugin.spring.getbean.ProxyReplacer
-
public class ProxyReplacer extends java.lang.ObjectProxies the beans. The beans inside these proxies can be cleared.- Author:
- Erki Ehtla
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFACTORY_METHOD_NAMEName of the Spring beanFactory method, which returns a bean
-
Constructor Summary
Constructors Constructor Description ProxyReplacer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearAllProxies()Clears the bean references inside all the proxiesstatic java.lang.Objectregister(java.lang.Object beanFactry, java.lang.Object bean, java.lang.Class<?>[] paramClasses, java.lang.Object[] paramValues)Creates a proxied Spring bean.
-
-
-
Field Detail
-
FACTORY_METHOD_NAME
public static final java.lang.String FACTORY_METHOD_NAME
Name of the Spring beanFactory method, which returns a bean- See Also:
- Constant Field Values
-
-
Method Detail
-
clearAllProxies
public static void clearAllProxies()
Clears the bean references inside all the proxies
-
register
public static java.lang.Object register(java.lang.Object beanFactry, java.lang.Object bean, java.lang.Class<?>[] paramClasses, java.lang.Object[] paramValues)Creates a proxied Spring bean. Called from within WebApp code by modification of Spring classes- 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:
- Proxied bean
-
-