Voyager ORB

com.objectspace.voyager
Class ClassManager

java.lang.Object
  |
  +--com.objectspace.voyager.ClassManager

public class ClassManager
extends java.lang.Object

ClassManager contains static methods that allow classes to be loaded using Voyager's class loading machinery.

Version:
3.0

Method Summary
static void enableResourceServer()
          Allow Voyager to serve resources (class files) to remote Voyager servers.
static java.lang.Class getClass(java.lang.String name)
          Return the class with the specified name.
static java.lang.ClassLoader getClassLoader()
          Return the ClassLoader being used by Voyager or null if there is none.
static java.lang.Class getProxyClass(java.lang.String name)
          Return the proxy class for the class with specified name.
static boolean isResourceServerEnabled()
          Return true if resource serving has been enabled.
static void resetClassLoader()
          Set the Voyager class loader to null.
static void setParentClassLoader(java.lang.ClassLoader parent)
          Set my parent class loader to the specified loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClass

public static java.lang.Class getClass(java.lang.String name)
                                throws java.lang.ClassNotFoundException
Return the class with the specified name.
Parameters:
name - The full name of the class.
Throws:
java.lang.ClassNotFoundException - The class was not found.
java.lang.NoClassDefFoundError - One of the classes this class depends on was not found

getProxyClass

public static java.lang.Class getProxyClass(java.lang.String name)
                                     throws java.lang.ClassNotFoundException
Return the proxy class for the class with specified name.
Parameters:
name - The full name of the class.
Throws:
java.lang.ClassNotFoundException - The class was not found.

getClassLoader

public static java.lang.ClassLoader getClassLoader()
Return the ClassLoader being used by Voyager or null if there is none. This is usually an instance of VoyagerClassLoader.

setParentClassLoader

public static void setParentClassLoader(java.lang.ClassLoader parent)
Set my parent class loader to the specified loader. The parent class loader is used to locate resources before trying Voyager's class loader. The parent class loader is typically an AppletClassLoader or a ServletClassLoader.
Parameters:
parent - The parent class loader.

resetClassLoader

public static void resetClassLoader()
Set the Voyager class loader to null.

enableResourceServer

public static void enableResourceServer()
Allow Voyager to serve resources (class files) to remote Voyager servers.

isResourceServerEnabled

public static boolean isResourceServerEnabled()
Return true if resource serving has been enabled.

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240