public final class IsolatedClassLoader extends SecureClassLoader
IsolatedClassLoader class loads classes through
the class loader writer| Constructor and Description |
|---|
IsolatedClassLoader(ClassLoader parent,
org.apache.sling.commons.classloader.ClassLoaderWriter classLoaderWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
findClass(String name)
Finds and loads the class with the specified name from the class path.
|
Class<?> |
loadClass(String name,
boolean resolve)
Loads the class from this
ClassLoader. |
defineClass, defineClass, getPermissionsclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic IsolatedClassLoader(ClassLoader parent, org.apache.sling.commons.classloader.ClassLoaderWriter classLoaderWriter)
public final Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
ClassLoader. If the
class does not exist in this one, we check the parent. Please
note that this is the exact opposite of the
ClassLoader spec. We use it to work around
inconsistent class loaders from third party vendors.loadClass in class ClassLoadername - the name of the classresolve - if true then resolve the classClass objectClassNotFoundException - if the class could not be foundprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoadername - the name of the classClassNotFoundException - If the named class could not be found or
if this class loader has already been destroyed.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.