public class SubmoduleClassLoader extends ComponentClassLoader
To ensure that classes from the submodule are always loaded through the submodule classloader (and thus from the submodule jar), even if the classes are also on the classpath (e.g., during tests), all classes from the "org.apache.flink" package are loaded child-first.
Classes related to logging (e.g., log4j) are loaded parent-first.
All other classes can only be loaded if they are either available in the submodule jar or the bootstrap/app classloader (i.e., provided by the JDK).
Constructor and Description |
---|
SubmoduleClassLoader(URL[] classpath,
ClassLoader parentClassLoader) |
getResource, getResourceAsStream, getResources, loadClass
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public SubmoduleClassLoader(URL[] classpath, ClassLoader parentClassLoader)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.