Package org.apache.cxf.bus.blueprint
Class BundleDelegatingClassLoader
java.lang.Object
java.lang.ClassLoader
org.apache.cxf.bus.blueprint.BundleDelegatingClassLoader
A ClassLoader delegating to a given OSGi bundle.
-
Constructor Summary
ConstructorDescriptionBundleDelegatingClassLoader
(org.osgi.framework.Bundle bundle) BundleDelegatingClassLoader
(org.osgi.framework.Bundle bundle, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
protected URL
findResource
(String name) protected Enumeration<URL>
findResources
(String name) org.osgi.framework.Bundle
protected Class<?>
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, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
BundleDelegatingClassLoader
public BundleDelegatingClassLoader(org.osgi.framework.Bundle bundle) -
BundleDelegatingClassLoader
-
-
Method Details
-
findClass
- Overrides:
findClass
in classClassLoader
- Throws:
ClassNotFoundException
-
findResource
- Overrides:
findResource
in classClassLoader
-
findResources
- Overrides:
findResources
in classClassLoader
- Throws:
IOException
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
getBundle
public org.osgi.framework.Bundle getBundle()
-