public interface DeltaSpikeProxyClassGenerator
|Modifier and Type||Method and Description|
Generates a proxy class from the given source class, which also implements
<T> Class<T> generateProxyClass(ClassLoader classLoader, Class<T> targetClass, String suffix, String superAccessorMethodSuffix, Class<?> additionalInterfaces, Method delegateMethods, Method interceptMethods)
DeltaSpikeProxy. The proxy class will be generated in the same package as the original class and the suffix will be appended to the name of the class.
T- The target class.
ClassLoaderto 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. Please note that you must also pass new methods via
delegateMethods- Methods which should be delegated to the
DeltaSpikeProxy.getDelegateInvocationHandler()instead of invoking the original method.
interceptMethods- Methods which should be intercepted (to call interceptors or decorators) before invoking the original method.
Copyright © 2018 The Apache Software Foundation. All rights reserved.