Package org.nuxeo.osgi.application
Class SharedClassLoaderImpl
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.nuxeo.osgi.application.SharedClassLoaderImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SharedClassLoader
public class SharedClassLoaderImpl extends URLClassLoader implements SharedClassLoader
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description SharedClassLoaderImpl(ClassLoader parent)
SharedClassLoaderImpl(URL[] urls)
SharedClassLoaderImpl(URL[] urls, ClassLoader parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURL(URL url)
ClassLoader
getLoader()
Must return itself.-
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.osgi.application.SharedClassLoader
getURLs
-
-
-
-
Constructor Detail
-
SharedClassLoaderImpl
public SharedClassLoaderImpl(ClassLoader parent)
-
SharedClassLoaderImpl
public SharedClassLoaderImpl(URL[] urls)
-
SharedClassLoaderImpl
public SharedClassLoaderImpl(URL[] urls, ClassLoader parent)
-
-
Method Detail
-
addURL
public void addURL(URL url)
- Specified by:
addURL
in interfaceSharedClassLoader
- Overrides:
addURL
in classURLClassLoader
-
getLoader
public ClassLoader getLoader()
Description copied from interface:SharedClassLoader
Must return itself.- Specified by:
getLoader
in interfaceSharedClassLoader
-
-