org.apache.openjpa.persistence.osgi
Class BundleDelegatingClassLoader
java.lang.Object
java.lang.ClassLoader
org.apache.openjpa.persistence.osgi.BundleDelegatingClassLoader
public class BundleDelegatingClassLoader
- extends ClassLoader
This is a simple ClassLoader that delegates to the Bundle
and is used by the PersistenceUnitInfo
- Version:
- $Rev$ $Date$
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 |
BundleDelegatingClassLoader
public BundleDelegatingClassLoader(org.osgi.framework.Bundle b)
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 © 2006-2011 Apache Software Foundation. All Rights Reserved.