All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.beanbox.SimpleClassLoader

java.lang.Object
   |
   +----java.lang.ClassLoader
           |
           +----sun.beanbox.SimpleClassLoader

public class SimpleClassLoader
extends ClassLoader

Variable Index

 o ourLoader
 o urlPrefix

Method Index

 o applyDefinitions(Vector)
May want to add some support for reporting classes replicated across different JAR files.
 o createLoader(String, String)
Returns an InputStream on the resource
 o findClass(String)
Public version of findLoadedClass() to expose it across
 o getLocalResource(String, String)
 o getLocalResourceAsStream(String, String)
 o getResource(String)
 o getResourceAsStream(String)
 o loadClass(String, boolean)
This is the main method for ClassLoaders, that is being redefined
 o loadFromFile(String)
Helper function; load a class from a file
 o setDefinition(String, byte[])
Set some bytecodes as a definition for a class.
 o setLocalResourceSource(String, InputStreamProducer)
Assign an InputStream as the source for a given property name This value comes first after the system resources

Variables

 o urlPrefix
 public static final String urlPrefix
 o ourLoader
 public static SimpleClassLoader ourLoader

Methods

 o setDefinition
 public void setDefinition(String name,
                           byte buf[])
Set some bytecodes as a definition for a class. Do not actually define the class until later

 o applyDefinitions
 public synchronized void applyDefinitions(Vector classList)
May want to add some support for reporting classes replicated across different JAR files.

 o loadFromFile
 public Class loadFromFile(String fileName) throws ClassNotFoundException
Helper function; load a class from a file

 o findClass
 public Class findClass(String name)
Public version of findLoadedClass() to expose it across

 o loadClass
 protected Class loadClass(String name,
                           boolean resolve) throws ClassNotFoundException
This is the main method for ClassLoaders, that is being redefined

Overrides:
loadClass in class ClassLoader
 o setLocalResourceSource
 public void setLocalResourceSource(String name,
                                    InputStreamProducer isp)
Assign an InputStream as the source for a given property name This value comes first after the system resources

 o getResource
 public URL getResource(String name)
Overrides:
getResource in class ClassLoader
 o getResourceAsStream
 public InputStream getResourceAsStream(String name)
Overrides:
getResourceAsStream in class ClassLoader
 o createLoader
 public static SimpleClassLoader createLoader(String cookie,
                                              String dir)
Returns an InputStream on the resource

 o getLocalResource
 public static Object getLocalResource(String cookie,
                                       String name)
 o getLocalResourceAsStream
 public static InputStream getLocalResourceAsStream(String cookie,
                                                    String name)

All Packages  Class Hierarchy  This Package  Previous  Next  Index