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
-
ourLoader
-
-
urlPrefix
-
-
applyDefinitions(Vector)
- May want to add some support for reporting classes replicated across
different JAR files.
-
createLoader(String, String)
- Returns an InputStream on the resource
-
findClass(String)
- Public version of findLoadedClass() to expose it across
-
getLocalResource(String, String)
-
-
getLocalResourceAsStream(String, String)
-
-
getResource(String)
-
-
getResourceAsStream(String)
-
-
loadClass(String, boolean)
- This is the main method for ClassLoaders, that is being redefined
-
loadFromFile(String)
- Helper function; load a class from a file
-
setDefinition(String, byte[])
- Set some bytecodes as a definition for a class.
-
setLocalResourceSource(String, InputStreamProducer)
- Assign an InputStream as the source for a given property name
This value comes first after the system resources
urlPrefix
public static final String urlPrefix
ourLoader
public static SimpleClassLoader ourLoader
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
applyDefinitions
public synchronized void applyDefinitions(Vector classList)
- May want to add some support for reporting classes replicated across
different JAR files.
loadFromFile
public Class loadFromFile(String fileName) throws ClassNotFoundException
- Helper function; load a class from a file
findClass
public Class findClass(String name)
- Public version of findLoadedClass() to expose it across
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
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
getResource
public URL getResource(String name)
- Overrides:
- getResource in class ClassLoader
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Overrides:
- getResourceAsStream in class ClassLoader
createLoader
public static SimpleClassLoader createLoader(String cookie,
String dir)
- Returns an InputStream on the resource
getLocalResource
public static Object getLocalResource(String cookie,
String name)
getLocalResourceAsStream
public static InputStream getLocalResourceAsStream(String cookie,
String name)
All Packages Class Hierarchy This Package Previous Next Index