public static class AntWebAppContext.AntURLClassLoader extends URLClassLoader
Constructor and Description |
---|
AntWebAppContext.AntURLClassLoader(org.apache.tools.ant.AntClassLoader antLoader) |
newInstance, newInstance
defineClass, defineClass
defineClass, defineClass, defineClass, defineClass, findLoadedClass, findSystemClass, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setSigners
public AntWebAppContext.AntURLClassLoader(org.apache.tools.ant.AntClassLoader antLoader)
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class URLClassLoader
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class URLClassLoader
IOException
protected void addURL(URL url)
addURL
in class URLClassLoader
public URL[] getURLs()
getURLs
in class URLClassLoader
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
protected Package definePackage(String name, Manifest man, URL url) throws IllegalArgumentException
definePackage
in class URLClassLoader
IllegalArgumentException
public URL findResource(String name)
findResource
in class URLClassLoader
public Enumeration<URL> findResources(String name) throws IOException
findResources
in class URLClassLoader
IOException
protected PermissionCollection getPermissions(CodeSource codesource)
getPermissions
in class URLClassLoader
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Object getClassLoadingLock(String className)
getClassLoadingLock
in class ClassLoader
public URL getResource(String name)
getResource
in class ClassLoader
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException
definePackage
in class ClassLoader
IllegalArgumentException
protected Package getPackage(String name)
getPackage
in class ClassLoader
protected Package[] getPackages()
getPackages
in class ClassLoader
protected String findLibrary(String libname)
findLibrary
in class ClassLoader
public void setDefaultAssertionStatus(boolean enabled)
setDefaultAssertionStatus
in class ClassLoader
public void setPackageAssertionStatus(String packageName, boolean enabled)
setPackageAssertionStatus
in class ClassLoader
public void setClassAssertionStatus(String className, boolean enabled)
setClassAssertionStatus
in class ClassLoader
public void clearAssertionStatus()
clearAssertionStatus
in class ClassLoader
Copyright © 1995-2015 Webtide. All Rights Reserved.