|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.objectspace.voyager.loader.MSVoyagerClassLoader
VoyagerClassLoader is the default class loader, and supports custom loading of resources such as classes and proxies.
A VoyagerClassLoader maintains a list of prioritized resource loaders that implement IResourceLoader. If a resource cannot be found in the local CLASSPATH, each loader is sent getResourceAsStream( name ), starting at the loader with the highest priority. If two or more resource loaders are added at the same priority level, they are consulted in the order they were added.
The dynamic proxy generator implements IResourceLoader and is automatically installed at priority 5.
Method Summary | |
java.io.InputStream |
getLocalResourceAsStream(java.lang.String name)
Searches all installed resource loaders for the resource name specified. |
java.net.URL |
getResource(java.lang.String name)
Return a URL for the requested resource. |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Return an InputStream containing the bytes for the requested resource. |
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Load the specifed class, resolving if necessary. |
Method Detail |
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
name
- The full name of the class to load.resolve
- If true, resolve immediately.public java.net.URL getResource(java.lang.String name)
name
- The filename, including path, of a particular resource.public java.io.InputStream getResourceAsStream(java.lang.String name)
name
- The full filename of a particular resource.public java.io.InputStream getLocalResourceAsStream(java.lang.String name)
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |