public class PluginClassLoader extends ClassLoader
| Constructor and Description |
|---|
PluginClassLoader(File pluginArtifactFile)
Constructor.
|
PluginClassLoader(File pluginArtifactFile,
ClassLoader parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any resources the plugin classloader is holding open.
|
protected File |
createWorkDir(File pluginArtifactFile)
Creates a work directory into which various resources discovered in the plugin
artifact can be extracted.
|
protected void |
finalize() |
protected Class<?> |
findClass(String name) |
protected InputStream |
findClassContent(String className)
Searches the plugin artifact ZIP and all dependency ZIPs for a zip entry for
the given fully qualified class name.
|
protected URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
List<URL> |
getPolicyDefinitionResources() |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic PluginClassLoader(File pluginArtifactFile) throws IOException
pluginArtifactFile - plugin artifactIOException - if an I/O error has occurredpublic PluginClassLoader(File pluginArtifactFile, ClassLoader parent) throws IOException
pluginArtifactFile - plugin artifactparent - parent classloaderIOException - if an I/O error has occurredprotected File createWorkDir(File pluginArtifactFile) throws IOException
pluginArtifactFile - plugin artifactIOException - if an I/O error has occurredprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionClassLoader.findClass(java.lang.String)protected InputStream findClassContent(String className) throws IOException
className - name of classIOException - if an I/O error has occurredprotected URL findResource(String name)
findResource in class ClassLoaderClassLoader.findResource(java.lang.String)protected Enumeration<URL> findResources(String name) throws IOException
findResources in class ClassLoaderIOExceptionClassLoader.findResources(java.lang.String)protected void finalize()
throws Throwable
finalize in class ObjectThrowableObject.finalize()public void close()
throws IOException
IOException - if an I/O error has occurredCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.