Package org.apache.flink.util
Class MutableURLClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.apache.flink.util.MutableURLClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
FlinkUserCodeClassLoader
,FlinkUserCodeClassLoaders.SafetyNetWrapperClassLoader
@Internal public abstract class MutableURLClassLoader extends URLClassLoader
URL class loader that exposes the `addURL` method in URLClassLoader.
-
-
Constructor Summary
Constructors Constructor Description MutableURLClassLoader(URL[] urls, ClassLoader parent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addURL(URL url)
abstract MutableURLClassLoader
copy()
Copy the classloader for each job and these jobs can add their jar files to the classloader independently.-
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, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
MutableURLClassLoader
public MutableURLClassLoader(URL[] urls, ClassLoader parent)
-
-
Method Detail
-
addURL
public void addURL(URL url)
- Overrides:
addURL
in classURLClassLoader
-
copy
public abstract MutableURLClassLoader copy()
Copy the classloader for each job and these jobs can add their jar files to the classloader independently.- Returns:
- the copied classloader
-
-