org.apache.sling.commons.classloader.impl
Class BundleProxyClassLoader
java.lang.Object
java.lang.ClassLoader
org.apache.sling.commons.classloader.impl.BundleProxyClassLoader
public class BundleProxyClassLoader
- extends ClassLoader
The BundleProxyClassLoader
is a class loader
delegating to a bundle.
We don't need to cache as the ClassLoaderFacade
is
already doing this.
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, 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 |
BundleProxyClassLoader
public BundleProxyClassLoader(org.osgi.framework.Bundle bundle)
findResources
public Enumeration<URL> findResources(String name)
throws IOException
- Overrides:
findResources
in class ClassLoader
- Throws:
IOException
findResource
public URL findResource(String name)
- Overrides:
findResource
in class ClassLoader
findClass
public Class<?> findClass(String name)
throws ClassNotFoundException
- Overrides:
findClass
in class ClassLoader
- Throws:
ClassNotFoundException
getResource
public URL getResource(String name)
- Overrides:
getResource
in class ClassLoader
loadClass
protected Class<?> loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Overrides:
loadClass
in class ClassLoader
- Throws:
ClassNotFoundException
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.