Class StandardClassLoaderCBP
- java.lang.Object
-
- org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor
-
- org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor
-
- org.zeroturnaround.javarebel.integration.generic.StandardClassLoaderCBP
-
- All Implemented Interfaces:
org.zeroturnaround.javarebel.ClassBytecodeProcessor
public class StandardClassLoaderCBP extends CacheAwareJavassistClassBytecodeProcessor
CBP for the standard class loader integration.The given class loader is registered with JRebel at the end of any constructor.
findClass,findResourceandfindResourcesmethods are delegated to JRebel.FindResourceClassResourceSourceis used by JRebel to find resources using the given class loader.- Author:
- Jevgeni Kabanov, Rein Raudjärv
- See Also:
Integration,FindResourceClassResourceSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor
CacheAwareJavassistClassBytecodeProcessor.CachingPolicy
-
-
Constructor Summary
Constructors Constructor Description StandardClassLoaderCBP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpatchFindClass(org.zeroturnaround.bundled.javassist.ClassPool cp, org.zeroturnaround.bundled.javassist.CtClass ctClass)Override class loadingvoidprocess(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
-
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
-
patchFindClass
protected void patchFindClass(org.zeroturnaround.bundled.javassist.ClassPool cp, org.zeroturnaround.bundled.javassist.CtClass ctClass) throws org.zeroturnaround.bundled.javassist.CannotCompileException, org.zeroturnaround.bundled.javassist.NotFoundExceptionOverride class loading- Throws:
org.zeroturnaround.bundled.javassist.CannotCompileExceptionorg.zeroturnaround.bundled.javassist.NotFoundException
-
-