Class ProxyFactory


  • public final class ProxyFactory
    extends java.lang.Object
    Original class is a super class of a proxy object here.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getEnhancedProxy​(java.lang.Class<T> requiredClazz, java.lang.Class<?>[] params, java.lang.Object[] values, net.sf.cglib.proxy.MethodInterceptor interceptor)
      It returns some proxies created by CGLIB.
      static <T> T getEnhancedProxy​(java.lang.Class<T> requiredClazz, net.sf.cglib.proxy.MethodInterceptor interceptor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getEnhancedProxy

        public static <T> T getEnhancedProxy​(java.lang.Class<T> requiredClazz,
                                             net.sf.cglib.proxy.MethodInterceptor interceptor)
      • getEnhancedProxy

        public static <T> T getEnhancedProxy​(java.lang.Class<T> requiredClazz,
                                             java.lang.Class<?>[] params,
                                             java.lang.Object[] values,
                                             net.sf.cglib.proxy.MethodInterceptor interceptor)
        It returns some proxies created by CGLIB.
        Type Parameters:
        T - The proxy object class.
        Parameters:
        requiredClazz - is a Class whose instance should be created
        params - is an array of @link java.lang.Class}. It should be convenient to parameter types of some declared constructor which belongs to desired class.
        values - is an array of @link java.lang.Object}. It should be convenient to parameter types of some declared constructor which belongs to desired class.
        interceptor - is the instance of MethodInterceptor
        Returns:
        a proxied instance of the desired class