org.glassfish.osgijavaeebase
Class TempBundleClassLoader
java.lang.Object
java.lang.ClassLoader
org.glassfish.osgijavaeebase.TempBundleClassLoader
public class TempBundleClassLoader
- extends ClassLoader
This class loader only provides a new class loading namespace
It is useful during annotation scanning classes get loaded in that separate
namespace. This class loader delegates all stream handling (i.e. reading
actual class/resource data) operations to a delegate Bundle.
It only defines the Class using the byte codes.
- Author:
- Sanjeeb.Sahoo@Sun.COM
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findSystemClass, getPackage, getPackages, getParent, 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 |
TempBundleClassLoader
public TempBundleClassLoader(BundleClassLoader delegate)
findClass
protected Class findClass(String name)
throws ClassNotFoundException
- This method uses the delegate to use class bytes and then defines
the class using this class loader
- Overrides:
findClass in class ClassLoader
- Throws:
ClassNotFoundException
getResource
public URL getResource(String name)
- Overrides:
getResource in class ClassLoader
findResources
public Enumeration<URL> findResources(String name)
throws IOException
- Overrides:
findResources in class ClassLoader
- Throws:
IOException
Copyright © 2012 GlassFish Community. All Rights Reserved.