org.apache.aries.jpa.container.unit.impl
Class BundleDelegatingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.apache.aries.jpa.container.unit.impl.BundleDelegatingClassLoader

public class BundleDelegatingClassLoader
extends ClassLoader

This is a simple ClassLoader that delegates to the Bundle and is used by the PersistenceUnitInfo


Constructor Summary
BundleDelegatingClassLoader(org.osgi.framework.Bundle b)
           
 
Method Summary
protected  Class<?> findClass(String name)
           
protected  URL findResource(String name)
           
protected  Enumeration<URL> findResources(String name)
           
 
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, 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

BundleDelegatingClassLoader

public BundleDelegatingClassLoader(org.osgi.framework.Bundle b)
Method Detail

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


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.