public class ResourceStoreClassLoader extends ClassLoader implements Cloneable
Modifier | Constructor and Description |
---|---|
|
ResourceStoreClassLoader(ClassLoader pParent) |
protected |
ResourceStoreClassLoader(ClassLoader pParent,
LinkedHashSet<ResourceStore> cp) |
Modifier and Type | Method and Description |
---|---|
boolean |
addStore(ResourceStore store) |
ResourceStoreClassLoader |
clone() |
static String |
convertClassToResourcePath(String pName)
org.my.Class -> org/my/Class.class
|
protected void |
doDefinePackage(String name)
Without this method getPackage() returns null
|
protected Class<?> |
fastFindClass(String name) |
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
protected String |
getId() |
protected Package |
getPackage(String name) |
protected Package[] |
getPackages() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
ResourceStore[] |
getStores() |
Class<?> |
loadClass(String name,
boolean resolve) |
boolean |
removeStore(ResourceStore store) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getParent, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public ResourceStoreClassLoader(ClassLoader pParent)
protected ResourceStoreClassLoader(ClassLoader pParent, LinkedHashSet<ResourceStore> cp)
public boolean addStore(ResourceStore store)
public boolean removeStore(ResourceStore store)
public ResourceStoreClassLoader clone()
public ResourceStore[] getStores()
protected Class<?> fastFindClass(String name)
protected void doDefinePackage(String name)
name
- protected URL findResource(String name)
findResource
in class ClassLoader
protected Enumeration<URL> findResources(String name) throws IOException
findResources
in class ClassLoader
IOException
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
public URL getResource(String name)
getResource
in class ClassLoader
protected Package getPackage(String name)
getPackage
in class ClassLoader
protected Package[] getPackages()
getPackages
in class ClassLoader
public static String convertClassToResourcePath(String pName)
Copyright © 2015 Nuxeo SA. All rights reserved.