class FlinkUserCodeClassLoaders {

	public static URLClassLoader childFirst(
			URL[] urls,
			ClassLoader parent,
			String[] alwaysParentFirstPatterns,
			Consumer<Throwable> classLoadingExceptionHandler,
			boolean checkClassLoaderLeak) {
		FlinkUserCodeClassLoader classLoader = new ChildFirstClassLoader(
			urls,
			parent,
			alwaysParentFirstPatterns,
			classLoadingExceptionHandler);
		return wrapWithSafetyNet(classLoader, checkClassLoaderLeak);
	}

	private  FlinkUserCodeClassLoaders();

}