类 CahClassLoader


  • public class CahClassLoader
    extends ClassLoader
    作者:
    Yun
    • 构造器详细资料

      • CahClassLoader

        public CahClassLoader()
      • CahClassLoader

        public CahClassLoader​(Map<String,​byte[]> clsMap)
    • 方法详细资料

      • addClass

        public boolean addClass​(String className,
                                byte[] classBytes)
        Add class into this class loader
        return false if the same name class is exiting in this class loader, nothing change
      • addClass

        public boolean addClass​(String className,
                                Path path)
        Add class into this class loader
        return false if the same name class is exiting in this class loader, nothing change
        return false if failed to read class by this path, nothing change
      • getClassStatus

        public CahClassLoader.ClassStatus getClassStatus​(String className)
        Return ClassStatus.NOT_IN_LOADER if class is not found in CahClassLoader by class full name
        Return ClassStatus.IN_LOADER, if class is found in CahClassLoader by class full name, but not loaded into JVM heap
        Return ClassStatus.LOADED if Class already is loaded into JVM heap, it can not be loaded again by the same class loader instance