Package org.apache.flink.util
Class FlinkUserCodeClassLoaders
- java.lang.Object
-
- org.apache.flink.util.FlinkUserCodeClassLoaders
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FlinkUserCodeClassLoaders.ParentFirstClassLoader
Regular URLClassLoader that first loads from the parent and only after that from the URLs.static class
FlinkUserCodeClassLoaders.ResolveOrder
Class resolution order for Flink URLClassLoader
.static class
FlinkUserCodeClassLoaders.SafetyNetWrapperClassLoader
Ensures that holding a reference on the context class loader outliving the scope of user code does not prevent the user classloader to be garbage collected (FLINK-16245).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MutableURLClassLoader
childFirst(URL[] urls, ClassLoader parent, String[] alwaysParentFirstPatterns, Consumer<Throwable> classLoadingExceptionHandler, boolean checkClassLoaderLeak)
static MutableURLClassLoader
create(URL[] urls, ClassLoader parent, ReadableConfig config)
static MutableURLClassLoader
create(FlinkUserCodeClassLoaders.ResolveOrder resolveOrder, URL[] urls, ClassLoader parent, String[] alwaysParentFirstPatterns, Consumer<Throwable> classLoadingExceptionHandler, boolean checkClassLoaderLeak)
static MutableURLClassLoader
parentFirst(URL[] urls, ClassLoader parent, Consumer<Throwable> classLoadingExceptionHandler, boolean checkClassLoaderLeak)
-
-
-
Method Detail
-
parentFirst
public static MutableURLClassLoader parentFirst(URL[] urls, ClassLoader parent, Consumer<Throwable> classLoadingExceptionHandler, boolean checkClassLoaderLeak)
-
childFirst
public static MutableURLClassLoader childFirst(URL[] urls, ClassLoader parent, String[] alwaysParentFirstPatterns, Consumer<Throwable> classLoadingExceptionHandler, boolean checkClassLoaderLeak)
-
create
public static MutableURLClassLoader create(URL[] urls, ClassLoader parent, ReadableConfig config)
-
create
public static MutableURLClassLoader create(FlinkUserCodeClassLoaders.ResolveOrder resolveOrder, URL[] urls, ClassLoader parent, String[] alwaysParentFirstPatterns, Consumer<Throwable> classLoadingExceptionHandler, boolean checkClassLoaderLeak)
-
-