Package org.eclipse.jetty.ant
Class AntWebAppContext.AntURLClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.eclipse.jetty.ant.AntWebAppContext.AntURLClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- AntWebAppContext
AntURLClassLoader
Adapt the AntClassLoader which is not a URLClassLoader - this is needed for
jsp to be able to search the classpath.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
void
close()
protected Package
definePackage
(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) protected Package
definePackage
(String name, Manifest man, URL url) protected Class<?>
protected String
findLibrary
(String libname) findResource
(String name) findResources
(String name) protected Object
getClassLoadingLock
(String className) protected Package[]
protected PermissionCollection
getPermissions
(CodeSource codesource) getResource
(String name) getResourceAsStream
(String name) getResources
(String name) URL[]
getURLs()
Class<?>
protected Class<?>
void
setClassAssertionStatus
(String className, boolean enabled) void
setDefaultAssertionStatus
(boolean enabled) void
setPackageAssertionStatus
(String packageName, boolean enabled) Methods inherited from class java.net.URLClassLoader
newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
defineClass, defineClass, defineClass, defineClass, findClass, findLoadedClass, findResource, findSystemClass, getDefinedPackage, getDefinedPackages, getName, getPackage, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, registerAsParallelCapable, resolveClass, resources, setSigners
-
Constructor Details
-
AntURLClassLoader
public AntURLClassLoader(org.apache.tools.ant.AntClassLoader antLoader)
-
-
Method Details
-
getResourceAsStream
- Overrides:
getResourceAsStream
in classURLClassLoader
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classURLClassLoader
- Throws:
IOException
-
addURL
- Overrides:
addURL
in classURLClassLoader
-
getURLs
- Overrides:
getURLs
in classURLClassLoader
-
findClass
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-
findResource
- Overrides:
findResource
in classURLClassLoader
-
findResources
- Overrides:
findResources
in classURLClassLoader
- Throws:
IOException
-
getPermissions
- Overrides:
getPermissions
in classURLClassLoader
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
getClassLoadingLock
- Overrides:
getClassLoadingLock
in classClassLoader
-
getResource
- Overrides:
getResource
in classClassLoader
-
getResources
- Overrides:
getResources
in classClassLoader
- Throws:
IOException
-
definePackage
- Overrides:
definePackage
in classURLClassLoader
- Throws:
IllegalArgumentException
-
definePackage
protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException - Overrides:
definePackage
in classClassLoader
- Throws:
IllegalArgumentException
-
getPackages
- Overrides:
getPackages
in classClassLoader
-
findLibrary
- Overrides:
findLibrary
in classClassLoader
-
setDefaultAssertionStatus
public void setDefaultAssertionStatus(boolean enabled) - Overrides:
setDefaultAssertionStatus
in classClassLoader
-
setPackageAssertionStatus
- Overrides:
setPackageAssertionStatus
in classClassLoader
-
setClassAssertionStatus
- Overrides:
setClassAssertionStatus
in classClassLoader
-
clearAssertionStatus
public void clearAssertionStatus()- Overrides:
clearAssertionStatus
in classClassLoader
-