Package org.nuxeo.runtime.tomcat.dev
Class LocalURLClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.nuxeo.runtime.tomcat.dev.LocalURLClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LocalClassLoader
public class LocalURLClassLoader extends URLClassLoader implements LocalClassLoader
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description LocalURLClassLoader(ClassLoader parent)
LocalURLClassLoader(URL[] urls, ClassLoader parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURL(URL url)
URL
getLocalResource(String name)
InputStream
getLocalResourceAsStream(String name)
Enumeration<URL>
getLocalResources(String name)
Class<?>
loadLocalClass(String name, boolean resolve)
-
Methods inherited from class java.net.URLClassLoader
close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.tomcat.dev.LocalClassLoader
loadClass
-
-
-
-
Constructor Detail
-
LocalURLClassLoader
public LocalURLClassLoader(ClassLoader parent)
-
LocalURLClassLoader
public LocalURLClassLoader(URL[] urls, ClassLoader parent)
-
-
Method Detail
-
addURL
public void addURL(URL url)
- Specified by:
addURL
in interfaceLocalClassLoader
- Overrides:
addURL
in classURLClassLoader
-
loadLocalClass
public Class<?> loadLocalClass(String name, boolean resolve) throws ClassNotFoundException
- Specified by:
loadLocalClass
in interfaceLocalClassLoader
- Throws:
ClassNotFoundException
-
getLocalResource
public URL getLocalResource(String name)
- Specified by:
getLocalResource
in interfaceLocalClassLoader
-
getLocalResources
public Enumeration<URL> getLocalResources(String name) throws IOException
- Specified by:
getLocalResources
in interfaceLocalClassLoader
- Throws:
IOException
-
getLocalResourceAsStream
public InputStream getLocalResourceAsStream(String name) throws IOException
- Specified by:
getLocalResourceAsStream
in interfaceLocalClassLoader
- Throws:
IOException
-
-