org.apache.xbean.osgi
Class BundleClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.apache.xbean.osgi.BundleClassLoader

public class BundleClassLoader
extends ClassLoader

Since:
2.0
Author:
Dain Sundstrom

Constructor Summary
BundleClassLoader(org.osgi.framework.Bundle bundle)
           
 
Method Summary
protected  Enumeration findResources(String name)
           
 URL getResource(String name)
           
 Class loadClass(String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getPackage, getPackages, getParent, 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
 

Constructor Detail

BundleClassLoader

public BundleClassLoader(org.osgi.framework.Bundle bundle)
Method Detail

loadClass

public Class loadClass(String name)
                throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

getResource

public URL getResource(String name)
Overrides:
getResource in class ClassLoader

findResources

protected Enumeration findResources(String name)
                             throws IOException
Overrides:
findResources in class ClassLoader
Throws:
IOException


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.