public interface ProxyClassGenerator
| Modifier and Type | Method and Description | 
|---|---|
<T> Class<T> | 
generateProxyClass(ClassLoader classLoader,
                  Class<T> targetClass,
                  String suffix,
                  String superAccessorMethodSuffix,
                  Class<?>[] additionalInterfaces,
                  Method[] delegateMethods,
                  Method[] interceptMethods)
Generates a proxy class from the given source class. 
 | 
<T> Class<T> generateProxyClass(ClassLoader classLoader, Class<T> targetClass, String suffix, String superAccessorMethodSuffix, Class<?>[] additionalInterfaces, Method[] delegateMethods, Method[] interceptMethods)
T - The target class.classLoader - The ClassLoader to be used to define the proxy class.targetClass - The class to proxy.suffix - The classname suffix.superAccessorMethodSuffix - It's required to generate methods which just invokes the original method.
                                  We generate them with the same name as the original method
                                  and append the suffix.additionalInterfaces - Additional interfaces which should be implemented.delegateMethods - Methods which should be delegated to the delegateInvocationHandlerClass
                        instead of invoking the original method.interceptMethods - Methods which should be intercepted (to call interceptors or decorators)
                         before invoking the original method.Copyright © 2017 The Apache Software Foundation. All rights reserved.