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

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

public class TempBundleDelegatingClassLoader
extends ClassLoader

This is a simple temporary ClassLoader that delegates to the Bundle, but does not call loadClass. It is used by the PersistenceUnitInfo


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

TempBundleDelegatingClassLoader

public TempBundleDelegatingClassLoader(org.osgi.framework.Bundle b,
                                       ClassLoader parent)
Method Detail

findClass

protected Class<?> findClass(String className)
                      throws ClassNotFoundException
Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException

findResource

protected URL findResource(String resName)
Overrides:
findResource in class ClassLoader

findResources

protected Enumeration<URL> findResources(String resName)
                                  throws IOException
Overrides:
findResources in class ClassLoader
Throws:
IOException


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