Class OSGiClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.eclipse.jetty.osgi.boot.utils.OSGiClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
OSGiClassLoader
Class loader that is aware of a bundle. Similar to WebAppClassLoader from Jetty
and the OSGiWebAppClassLoader, but works without webapps.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
getResource
(String name) Get a resource from the classloader Copied from WebAppClassLoadergetResources
(String name) Class<?>
protected Class<?>
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, 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, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
OSGiClassLoader
-
-
Method Details
-
getResource
Get a resource from the classloader Copied from WebAppClassLoader- Overrides:
getResource
in classClassLoader
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
getResources
- Overrides:
getResources
in classClassLoader
- Throws:
IOException
-
findClass
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-