Class 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, 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:
  • 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: JavassistClassBytecodeProcessor
      Modifies the class to be loaded.
      Specified by:
      process in class JavassistClassBytecodeProcessor
      Parameters:
      cp - the container of CtClass objects.
      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.CannotCompileException
      org.zeroturnaround.bundled.javassist.NotFoundException