Module de.carne
Package de.carne.boot

Class ApplicationJarClassLoader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class ApplicationJarClassLoader
    extends java.net.URLClassLoader
    ClassLoader implementation used to load classes from a single Jar file including any nested Jar file during class search.
    • Method Summary

      • Methods inherited from class java.net.URLClassLoader

        addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
      • Methods inherited from class java.security.SecureClassLoader

        defineClass, defineClass
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, 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

      • ApplicationJarClassLoader

        public ApplicationJarClassLoader​(java.io.File jarFile,
                                         java.lang.ClassLoader parent)
                                  throws java.io.IOException
        Constructs a new ApplicationJarClassLoader instance.
        Parameters:
        jarFile - the the Jar file containing the classes to load.
        parent - the parent ClassLoader to use for delegation.
        Throws:
        java.io.IOException - if an I/O error occurs while accessing the Jar file.