@InterfaceAudience.Private public class ClassLoaderBase extends URLClassLoader
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_LOCAL_DIR |
protected static String |
LOCAL_DIR_KEY |
protected ClassLoader |
parent
Parent class loader.
|
Constructor and Description |
---|
ClassLoaderBase(ClassLoader parent)
Creates a DynamicClassLoader that can load classes dynamically
from jar files under a specific folder.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
getClassLoadingLock(String className)
Returns the lock object for class loading operations.
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
protected static final String DEFAULT_LOCAL_DIR
protected static final String LOCAL_DIR_KEY
protected final ClassLoader parent
public ClassLoaderBase(ClassLoader parent)
parent
- the parent ClassLoader to set.protected Object getClassLoadingLock(String className)
getClassLoadingLock
in class ClassLoader
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.