How to create a dynamic proxy using ByteBuddy
问题 In Java it is possible to create dynamic proxies using an implementation of InvocationHandler . Despite JVM optimizations, using reflection will always have some overhead invoking a method. To try to solve this problem, I tried to use ByteBuddy to create the proxy classes at runtime, but the documentation didn't seem clear enough on this aspect. How do I create a MethodCallProxy in order to forward a method invocation to some class instance? Edit: To better clarify my problem, I am providing