- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- de.carne.boot.ApplicationJarClassLoader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class ApplicationJarClassLoader extends java.net.URLClassLoaderClassLoader implementation used to load classes from a single Jar file including any nested Jar file during class search.
-
-
Constructor Summary
Constructors Constructor Description ApplicationJarClassLoader(java.io.File jarFile, java.lang.ClassLoader parent)Constructs a new ApplicationJarClassLoader instance.
-
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.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
-
-
-
-
Constructor Detail
-
ApplicationJarClassLoader
public ApplicationJarClassLoader(java.io.File jarFile, java.lang.ClassLoader parent) throws java.io.IOExceptionConstructs 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.
-
-