Class ImplementInterfaceCBP
- java.lang.Object
-
- org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor
-
- org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor
-
- org.zeroturnaround.javarebel.integration.generic.ImplementInterfaceCBP
-
- All Implemented Interfaces:
org.zeroturnaround.javarebel.ClassBytecodeProcessor
public class ImplementInterfaceCBP extends CacheAwareJavassistClassBytecodeProcessor
Processor making the class implement the given interface only if it is not already doing so.
-
-
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)static JavassistClassBytecodeProcessorgetInstance(Class<?> clazz)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
getCachingPolicy, process
-
Methods inherited from class org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor
acceptPathAsClass, acceptPathAsPrimitive, priority, process, setImplicitClassNames
-
-
-
-
Method Detail
-
getInstance
public static JavassistClassBytecodeProcessor getInstance(Class<?> clazz)
-
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)
- Overrides:
getCachingPolicyin classCacheAwareJavassistClassBytecodeProcessor
-
-