Class HotswapSpringInvocationHandler

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.reflect.InvocationHandler

    public class HotswapSpringInvocationHandler
    extends DetachableBeanHolder
    implements java.lang.reflect.InvocationHandler
    MethodInterceptor for java.lang.reflect bean Proxies. If the bean inside the proxy is cleared, it will be retrieved from the factory on demand.
    Author:
    Erki Ehtla
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HotswapSpringInvocationHandler​(java.lang.Object bean, java.lang.Object beanFactry, java.lang.Class<?>[] paramClasses, java.lang.Object[] paramValues)  
    • Constructor Detail

      • HotswapSpringInvocationHandler

        public HotswapSpringInvocationHandler​(java.lang.Object bean,
                                              java.lang.Object beanFactry,
                                              java.lang.Class<?>[] paramClasses,
                                              java.lang.Object[] paramValues)
        Parameters:
        beanFactry - Spring beanFactory
        bean - Spring bean
        paramClasses - Parameter Classes of the Spring beanFactory method which returned the bean. The method is named ProxyReplacer.FACTORY_METHOD_NAME
        paramValues - Parameter values of the Spring beanFactory method which returned the bean. The method is named ProxyReplacer.FACTORY_METHOD_NAME
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable