@Internal public static class FlinkUserCodeClassLoaders.SafetyNetWrapperClassLoader extends MutableURLClassLoader
This classloader delegates to the actual user classloader. Upon close()
, the
delegate is nulled and can be garbage collected. Additional class resolution will be resolved
solely through the bootstrap classloader and most likely result in ClassNotFound exceptions.
Modifier and Type | Field and Description |
---|---|
protected FlinkUserCodeClassLoader |
inner |
Modifier | Constructor and Description |
---|---|
protected |
SafetyNetWrapperClassLoader(FlinkUserCodeClassLoader inner,
ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addURL(URL url) |
void |
close() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
URL[] |
getURLs() |
Class<?> |
loadClass(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected volatile FlinkUserCodeClassLoader inner
protected SafetyNetWrapperClassLoader(FlinkUserCodeClassLoader inner, ClassLoader parent)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class URLClassLoader
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public void addURL(URL url)
addURL
in class MutableURLClassLoader
public URL getResource(String name)
getResource
in class ClassLoader
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
public URL[] getURLs()
getURLs
in class URLClassLoader
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.