public abstract class FlinkUserCodeClassLoader extends MutableURLClassLoader
loadClass(String,
boolean)
.Modifier and Type | Field and Description |
---|---|
static java.util.function.Consumer<Throwable> |
NOOP_EXCEPTION_HANDLER |
Modifier | Constructor and Description |
---|---|
protected |
FlinkUserCodeClassLoader(URL[] urls,
ClassLoader parent) |
protected |
FlinkUserCodeClassLoader(URL[] urls,
ClassLoader parent,
java.util.function.Consumer<Throwable> classLoadingExceptionHandler) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
loadClass(String name,
boolean resolve) |
protected Class<?> |
loadClassWithoutExceptionHandling(String name,
boolean resolve)
Same as
loadClass(String, boolean) but without exception handling. |
addURL
close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public static final java.util.function.Consumer<Throwable> NOOP_EXCEPTION_HANDLER
protected FlinkUserCodeClassLoader(URL[] urls, ClassLoader parent)
protected FlinkUserCodeClassLoader(URL[] urls, ClassLoader parent, java.util.function.Consumer<Throwable> classLoadingExceptionHandler)
public final Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> loadClassWithoutExceptionHandling(String name, boolean resolve) throws ClassNotFoundException
loadClass(String, boolean)
but without exception handling.
Extending concrete class loaders should implement this instead of loadClass(String, boolean)
.
ClassNotFoundException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.