public class AvoidDuplicatePatchingCBP extends JavassistClassBytecodeProcessor
JavassistClassBytecodeProcessor.CachingPolicy| Constructor and Description |
|---|
AvoidDuplicatePatchingCBP(JavassistClassBytecodeProcessor cbp) |
AvoidDuplicatePatchingCBP(JavassistClassBytecodeProcessor cbp,
String cbpName) |
| Modifier and Type | Method and Description |
|---|---|
protected JavassistClassBytecodeProcessor.CachingPolicy |
getCachingPolicy()
Returns the caching policy used by this processor.
|
void |
process(org.zeroturnaround.bundled.javassist.ClassPool cp,
ClassLoader cl,
org.zeroturnaround.bundled.javassist.CtClass ctClass)
Modifies the class to be loaded.
|
acceptPathAsClass, process, setImplicitClassNamespublic AvoidDuplicatePatchingCBP(JavassistClassBytecodeProcessor cbp)
public AvoidDuplicatePatchingCBP(JavassistClassBytecodeProcessor cbp, String cbpName)
public void process(org.zeroturnaround.bundled.javassist.ClassPool cp,
ClassLoader cl,
org.zeroturnaround.bundled.javassist.CtClass ctClass)
throws Exception
JavassistClassBytecodeProcessorprocess in class JavassistClassBytecodeProcessorcp - the container of CtClass objects.cl - the class loader loading the given class.ctClass - the class representation.Exceptionprotected JavassistClassBytecodeProcessor.CachingPolicy getCachingPolicy()
JavassistClassBytecodeProcessorNEVER, then its transformations may be cached between runs. A processor then needs
to make sure that its process method does not have any side effects.
Also, the processing of a tagless processor may only depend on the arguments (the class loader, the name of the
class and the bytes) and on rebel.* configuration properties. In case of any other
dependencies, a tag should be used to identify the processing configuration. This
method returns ALWAYS if not overridden.getCachingPolicy in class JavassistClassBytecodeProcessorCopyright © 2018. All rights reserved.