Package org.apache.flink.util
Class FlinkUserCodeClassLoaders.ParentFirstClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.apache.flink.util.MutableURLClassLoader
-
- org.apache.flink.util.FlinkUserCodeClassLoader
-
- org.apache.flink.util.FlinkUserCodeClassLoaders.ParentFirstClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- FlinkUserCodeClassLoaders
@Internal public static class FlinkUserCodeClassLoaders.ParentFirstClassLoader extends FlinkUserCodeClassLoader
Regular URLClassLoader that first loads from the parent and only after that from the URLs.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.util.FlinkUserCodeClassLoader
classLoadingExceptionHandler, NOOP_EXCEPTION_HANDLER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableURLClassLoader
copy()
Copy the classloader for each job and these jobs can add their jar files to the classloader independently.-
Methods inherited from class org.apache.flink.util.FlinkUserCodeClassLoader
loadClass, loadClassWithoutExceptionHandling
-
Methods inherited from class org.apache.flink.util.MutableURLClassLoader
addURL
-
Methods inherited from class java.net.URLClassLoader
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, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
copy
public MutableURLClassLoader copy()
Description copied from class:MutableURLClassLoader
Copy the classloader for each job and these jobs can add their jar files to the classloader independently.- Specified by:
copy
in classMutableURLClassLoader
- Returns:
- the copied classloader
-
-