org.apache.cxf.bus.blueprint
Class BundleDelegatingClassLoader
java.lang.Object
java.lang.ClassLoader
org.apache.cxf.bus.blueprint.BundleDelegatingClassLoader
public class BundleDelegatingClassLoader
- extends ClassLoader
A ClassLoader delegating to a given OSGi bundle.
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleDelegatingClassLoader
public BundleDelegatingClassLoader(Bundle bundle)
BundleDelegatingClassLoader
public BundleDelegatingClassLoader(Bundle bundle,
ClassLoader classLoader)
findClass
protected Class<?> findClass(String name)
throws ClassNotFoundException
- Overrides:
findClass
in class ClassLoader
- Throws:
ClassNotFoundException
findResource
protected URL findResource(String name)
- Overrides:
findResource
in class ClassLoader
findResources
protected Enumeration<URL> findResources(String name)
throws IOException
- Overrides:
findResources
in class ClassLoader
- Throws:
IOException
loadClass
protected Class<?> loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Overrides:
loadClass
in class ClassLoader
- Throws:
ClassNotFoundException
getBundle
public Bundle getBundle()
Apache CXF