Method Summary |
|
protected void | addEmbeddedJarURL(URL embeddedJarURL) Add a URL to an embedded JAR on the classpath. |
protected void | cacheBytes() Reads all the data from the embedded jars into memory and caches the bytes of all their resources. |
protected void | establishEmbeddedUrls(String pathToEmbeddedPlugin) Establishes the set of URLs to resources in this classloader's classpath. |
protected Class> | findClass(String name) Attempts to locate the class with the given name. |
protected Class | findClassInEmbeddedJars(String className) Searches all of the embedded JARs for the Class with the given name. |
public URL | findResource(String resourceName) Finds the resource with the given resourceName by first searching the embedded plugin's "classes" directory and
then the embedded JARs in the "lib" directory. |
public Enumeration<URL> | findResources(String name) |
protected byte[] | getCachedBytes(String jarPath, String resourceName) Return the cached bytes for the given jar and resource. |
protected void | initialize(String pathToEmbeddedPlugin) Initializes the classloader from the gven embedded plugin path. |
protected ZipInputStream | openStreamToEmbeddedJar(URL jarUrl) Opens a ZipInputStream to the embedded jar represented by the given URL. |
public void | stop() |
public String | toString() A toString implementation which prints a list of all standard and embedded URLs in the classpath of this
classloader. |