public class MonoParentJarFileClassLoader
extends org.apache.xbean.classloader.NamedClassLoader
Constructor and Description |
---|
MonoParentJarFileClassLoader(String name,
URL[] urls)
Creates a JarFileClassLoader that is a child of the system class loader.
|
MonoParentJarFileClassLoader(String name,
URL[] urls,
ClassLoader parent)
Creates a JarFileClassLoader that is a child of the specified class loader.
|
Modifier and Type | Method and Description |
---|---|
void |
addURL(URL url) |
protected void |
addURLs(URL[] urls)
Adds an array of urls to the end of this class loader.
|
void |
destroy() |
protected Class |
findClass(String className) |
protected String |
findLibrary(String libraryName) |
URL |
findResource(String resourceName) |
Enumeration |
findResources(String resourceName) |
URL[] |
getURLs() |
getName, isDestroyed, toString
close, definePackage, getPermissions, getResourceAsStream, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public MonoParentJarFileClassLoader(String name, URL[] urls)
name
- the name of this class loaderurls
- a list of URLs from which classes and resources should be loadedpublic MonoParentJarFileClassLoader(String name, URL[] urls, ClassLoader parent)
name
- the name of this class loaderurls
- a list of URLs from which classes and resources should be loadedparent
- the parent of this class loaderpublic URL[] getURLs()
getURLs
in class URLClassLoader
public void addURL(URL url)
addURL
in class URLClassLoader
protected void addURLs(URL[] urls)
urls
- the URLs to addpublic void destroy()
destroy
in interface org.apache.xbean.classloader.DestroyableClassLoader
destroy
in class org.apache.xbean.classloader.NamedClassLoader
public URL findResource(String resourceName)
findResource
in class URLClassLoader
public Enumeration findResources(String resourceName) throws IOException
findResources
in class URLClassLoader
IOException
protected String findLibrary(String libraryName)
findLibrary
in class ClassLoader
protected Class findClass(String className) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
Copyright © 2013 BonitaSoft. All Rights Reserved.