public abstract class CacheAwareJavassistClassBytecodeProcessor extends JavassistClassBytecodeProcessor
cached by default.| Modifier and Type | Class and Description |
|---|---|
static class |
CacheAwareJavassistClassBytecodeProcessor.CachingPolicy
A caching policy of a
JavassistClassBytecodeProcessor. |
| Constructor and Description |
|---|
CacheAwareJavassistClassBytecodeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
getCachingPolicy(org.zeroturnaround.bundled.javassist.ClassPool cp)
Deprecated.
|
protected CacheAwareJavassistClassBytecodeProcessor.CachingPolicy |
getCachingPolicy(org.zeroturnaround.bundled.javassist.ClassPool cp,
ClassLoader cl)
Returns the caching policy used by this processor.
|
protected byte[] |
process(org.zeroturnaround.bundled.javassist.ClassPool cp,
ClassLoader cl,
String classname,
byte[] bytecode) |
acceptPathAsClass, process, process, setImplicitClassNamespublic CacheAwareJavassistClassBytecodeProcessor()
protected byte[] process(org.zeroturnaround.bundled.javassist.ClassPool cp,
ClassLoader cl,
String classname,
byte[] bytecode)
throws Exception
process in class JavassistClassBytecodeProcessorExceptionprotected CacheAwareJavassistClassBytecodeProcessor.CachingPolicy getCachingPolicy(org.zeroturnaround.bundled.javassist.ClassPool cp, ClassLoader cl)
If a processor uses a caching policy that isn't equal to NEVER, 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 keyless processor may only depend on the structure of the processed class. In case of
any other dependencies (e.g. the existence or structure of other classes in the class pool, configuration options
etc), a key should be used to identify the processing configuration. This method
returns ALWAYS in its default implementation.
@Deprecated protected CacheAwareJavassistClassBytecodeProcessor.CachingPolicy getCachingPolicy(org.zeroturnaround.bundled.javassist.ClassPool cp)
Copyright © 2018. All rights reserved.