Class NopConstructorCBP
- java.lang.Object
-
- org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor
-
- org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor
-
- org.zeroturnaround.javarebel.integration.generic.NopConstructorCBP
-
- All Implemented Interfaces:
org.zeroturnaround.javarebel.ClassBytecodeProcessor
public final class NopConstructorCBP extends CacheAwareJavassistClassBytecodeProcessor
Processor adding NOP constructors to the classes.- Author:
- Rein Raudjärv
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor
CacheAwareJavassistClassBytecodeProcessor.CachingPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CacheAwareJavassistClassBytecodeProcessor.CachingPolicygetCachingPolicy(org.zeroturnaround.bundled.javassist.ClassPool cp, ClassLoader cl)Returns the caching policy used by this processor.static JavassistClassBytecodeProcessorgetInstance()voidprocess(org.zeroturnaround.bundled.javassist.ClassPool cp, ClassLoader cl, org.zeroturnaround.bundled.javassist.CtClass ctClass)Modifies the class to be loaded.-
Methods inherited from class org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor
process
-
Methods inherited from class org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor
acceptPathAsClass, acceptPathAsPrimitive, priority, process, setImplicitClassNames, withDuplicatePatchingProtection
-
-
-
-
Method Detail
-
getInstance
public static JavassistClassBytecodeProcessor getInstance()
-
process
public void process(org.zeroturnaround.bundled.javassist.ClassPool cp, ClassLoader cl, org.zeroturnaround.bundled.javassist.CtClass ctClass) throws ExceptionDescription copied from class:JavassistClassBytecodeProcessorModifies the class to be loaded.- Specified by:
processin classJavassistClassBytecodeProcessor- Parameters:
cp- the container ofCtClassobjects.cl- the class loader loading the given class.ctClass- the class representation.- Throws:
Exception
-
getCachingPolicy
protected CacheAwareJavassistClassBytecodeProcessor.CachingPolicy getCachingPolicy(org.zeroturnaround.bundled.javassist.ClassPool cp, ClassLoader cl)
Description copied from class:CacheAwareJavassistClassBytecodeProcessorReturns the caching policy used by this processor.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 itsprocessmethod 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
keyshould be used to identify the processing configuration. This method returnsALWAYSin its default implementation.- Overrides:
getCachingPolicyin classCacheAwareJavassistClassBytecodeProcessor
-
-