Class ClassLoaders.ChildLayerFirstClassLoader

  • Enclosing class:
    ClassLoaders

    public static class ClassLoaders.ChildLayerFirstClassLoader
    extends java.lang.ClassLoader
    • Constructor Summary

      Constructors 
      Constructor Description
      ChildLayerFirstClassLoader​(java.lang.module.ModuleFinder finder, java.lang.ClassLoader parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.net.URL findResource​(java.lang.String name)  
      protected java.net.URL findResource​(java.lang.String moduleName, java.lang.String name)  
      protected java.util.Enumeration<java.net.URL> findResources​(java.lang.String name)  
      protected java.lang.Class<?> loadClass​(java.lang.String name, boolean resolve)  
      void setLayer​(java.lang.ModuleLayer layer)  
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
      • Methods inherited from class java.lang.Object

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

      • ChildLayerFirstClassLoader

        public ChildLayerFirstClassLoader​(java.lang.module.ModuleFinder finder,
                                          java.lang.ClassLoader parent)
    • Method Detail

      • setLayer

        public void setLayer​(java.lang.ModuleLayer layer)
      • loadClass

        protected java.lang.Class<?> loadClass​(java.lang.String name,
                                               boolean resolve)
                                        throws java.lang.ClassNotFoundException
        Overrides:
        loadClass in class java.lang.ClassLoader
        Throws:
        java.lang.ClassNotFoundException
      • findResource

        protected java.net.URL findResource​(java.lang.String moduleName,
                                            java.lang.String name)
        Overrides:
        findResource in class java.lang.ClassLoader
      • findResource

        protected java.net.URL findResource​(java.lang.String name)
        Overrides:
        findResource in class java.lang.ClassLoader
      • findResources

        protected java.util.Enumeration<java.net.URL> findResources​(java.lang.String name)
                                                             throws java.io.IOException
        Overrides:
        findResources in class java.lang.ClassLoader
        Throws:
        java.io.IOException