Class ProxyUtil


  • public class ProxyUtil
    extends Object
    Helper methods for creating proxies from classes which are processed by the NopConstructorCBP.

    All proxy classes are created as sub-classes. Therefore cast operations are not violated.

    Author:
    Rein Raudjärv
    • Constructor Detail

      • ProxyUtil

        public ProxyUtil()
    • Method Detail

      • createProxy

        public static Object createProxy​(Class<?> klass,
                                         org.zeroturnaround.bundled.javassist.util.proxy.MethodHandler handler)
                                  throws Throwable
        Create a proxy instance of the given class.
        Throws:
        Throwable
      • _createProxyClass

        public static Class<?> _createProxyClass​(Class<?> klass)
        Creates a proxy class from the given class.