public class ExtensionsClassLoader extends URLClassLoader
ClassLoader
for loading extensions to core Alluxio. This class loader first
scans the provided URLs to define a class and in case the class is not found it will fallback to
the provided default class loader.Constructor and Description |
---|
ExtensionsClassLoader(URL[] urls,
ClassLoader defaultClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
findClass(String name) |
Class<?> |
loadClass(String name,
boolean resolve) |
addURL, close, definePackage, 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 ExtensionsClassLoader(URL[] urls, ClassLoader defaultClassLoader)
urls
- array of URLs of jarsdefaultClassLoader
- the default class loader to fall backprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
Copyright © 2023. All Rights Reserved.