Class CglibDynamicBeanProxy

  • All Implemented Interfaces:
    net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

    public class CglibDynamicBeanProxy
    extends AbstractDynamicBeanProxy
    implements net.sf.cglib.proxy.MethodInterceptor
    The Class CglibDynamicBeanProxy.
    • Method Detail

      • intercept

        public java.lang.Object intercept​(java.lang.Object proxy,
                                          java.lang.reflect.Method method,
                                          java.lang.Object[] args,
                                          net.sf.cglib.proxy.MethodProxy methodProxy)
                                   throws java.lang.Throwable
        Specified by:
        intercept in interface net.sf.cglib.proxy.MethodInterceptor
        Throws:
        java.lang.Throwable
      • newInstance

        public static java.lang.Object newInstance​(ActivityContext context,
                                                   BeanRule beanRule,
                                                   java.lang.Object[] args,
                                                   java.lang.Class<?>[] argTypes)
        Creates a proxy class of bean and returns an instance of that class.
        Parameters:
        context - the activity context
        beanRule - the bean rule
        args - the arguments passed to a constructor
        argTypes - the parameter types for a constructor
        Returns:
        a new proxy bean object