Class ModuleClassLoaderTransformer


  • public class ModuleClassLoaderTransformer
    extends java.lang.Object
    ModuleClassLoaderTransformer
    Author:
    Vladimir Dvorak
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.hotswap.agent.logging.AgentLogger LOGGER  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void logSetExtraClassPathException​(java.lang.Exception e)  
      static void patchModuleClassLoader​(org.hotswap.agent.javassist.ClassPool classPool, org.hotswap.agent.javassist.CtClass ctClass)  
      static void patchModulesPaths​(org.hotswap.agent.javassist.ClassPool classPool, org.hotswap.agent.javassist.CtClass ctClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        protected static org.hotswap.agent.logging.AgentLogger LOGGER
    • Constructor Detail

      • ModuleClassLoaderTransformer

        public ModuleClassLoaderTransformer()
    • Method Detail

      • patchModuleClassLoader

        @OnClassLoadEvent(classNameRegexp="org.jboss.modules.ModuleClassLoader")
        public static void patchModuleClassLoader​(org.hotswap.agent.javassist.ClassPool classPool,
                                                  org.hotswap.agent.javassist.CtClass ctClass)
                                           throws org.hotswap.agent.javassist.CannotCompileException
        Parameters:
        ctClass - the ct class
        Throws:
        org.hotswap.agent.javassist.NotFoundException - the not found exception
        org.hotswap.agent.javassist.CannotCompileException - the cannot compile exception
      • patchModulesPaths

        @OnClassLoadEvent(classNameRegexp="org.jboss.modules.Paths")
        public static void patchModulesPaths​(org.hotswap.agent.javassist.ClassPool classPool,
                                             org.hotswap.agent.javassist.CtClass ctClass)
                                      throws org.hotswap.agent.javassist.NotFoundException,
                                             org.hotswap.agent.javassist.CannotCompileException
        Parameters:
        classPool - the class pool
        ctClass - the ct class
        Throws:
        org.hotswap.agent.javassist.NotFoundException - the not found exception
        org.hotswap.agent.javassist.CannotCompileException - the cannot compile exception
      • logSetExtraClassPathException

        public static void logSetExtraClassPathException​(java.lang.Exception e)