org.apache.felix.framework
Class ModuleImpl.ModuleClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by org.apache.felix.framework.ModuleImpl.ModuleClassLoader
All Implemented Interfaces:
BundleReference
Direct Known Subclasses:
ModuleImpl.ModuleClassLoaderJava5
Enclosing class:
ModuleImpl

public class ModuleImpl.ModuleClassLoader
extends SecureClassLoader
implements BundleReference


Constructor Summary
ModuleImpl.ModuleClassLoader(ClassLoader parent)
           
 
Method Summary
protected  Class findClass(String name)
           
protected  String findLibrary(String name)
           
protected  URL findResource(String name)
           
protected  Enumeration findResources(String name)
           
 Bundle getBundle()
          Returns the Bundle object associated with this BundleReference.
 URL getResource(String name)
           
protected  Class loadClass(String name, boolean resolve)
           
 String toString()
           
 
Methods inherited from class java.security.SecureClassLoader
defineClass, getPermissions
 
Methods inherited from class java.lang.ClassLoader
defineClass, defineClass, definePackage, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleImpl.ModuleClassLoader

public ModuleImpl.ModuleClassLoader(ClassLoader parent)
Method Detail

getBundle

public Bundle getBundle()
Description copied from interface: BundleReference
Returns the Bundle object associated with this BundleReference.

Specified by:
getBundle in interface BundleReference
Returns:
The Bundle object associated with this BundleReference.

loadClass

protected Class loadClass(String name,
                          boolean resolve)
                   throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

findClass

protected Class findClass(String name)
                   throws ClassNotFoundException
Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException

getResource

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

findResource

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

findResources

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

findLibrary

protected String findLibrary(String name)
Overrides:
findLibrary in class ClassLoader

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Apache Software Foundation. All Rights Reserved.