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
CBP for the standard class loader integration.
The given class loader is registered with JRebel at the end of any constructor.
findClass, findResource and findResources methods
are delegated to JRebel.
FindResourceClassResourceSource is used by JRebel
to find resources using the given class loader.
- Author:
- Jevgeni Kabanov, Rein Raudjärv
- See Also:
-
IntegrationFindResourceClassResourceSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zeroturnaround.javarebel.integration.support.CacheAwareJavassistClassBytecodeProcessor
CacheAwareJavassistClassBytecodeProcessor.CachingPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, processMethods inherited from class org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor
acceptPathAsClass, acceptPathAsPrimitive, priority, process, setImplicitClassNames, withDuplicatePatchingProtectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zeroturnaround.javarebel.ClassBytecodeProcessor
process
-
Constructor Details
-
StandardClassLoaderCBP
public StandardClassLoaderCBP()
-
-
Method Details
-
process
public void process(org.zeroturnaround.bundled.javassist.ClassPool cp, ClassLoader cl, org.zeroturnaround.bundled.javassist.CtClass ctClass) throws Exception Description 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.NotFoundException Override class loading- Throws:
org.zeroturnaround.bundled.javassist.CannotCompileExceptionorg.zeroturnaround.bundled.javassist.NotFoundException
-