Voyager ORB

com.objectspace.voyager
Class Factory

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

public class Factory
extends java.lang.Object

Factory contains static methods for constructing remote objects.

Version:
3.0

Method Summary
static Proxy create(java.lang.String classname)
          Return a proxy to a new instance of the specified class.
static Proxy create(java.lang.String classname, java.lang.Object[] args)
          Return a proxy to a new instance of the specified class.
static Proxy create(java.lang.String classname, java.lang.Object[] args, java.lang.String url)
          Return a proxy to a new instance of the specified class.
static Proxy create(java.lang.String classname, java.lang.String url)
          Return a proxy to a new instance of the specified class.
static Proxy create(java.lang.String classname, java.lang.String signature, java.lang.Object[] args, java.lang.String name)
          Return a proxy to a new instance of the specified class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Proxy create(java.lang.String classname,
                           java.lang.String signature,
                           java.lang.Object[] args,
                           java.lang.String name)
                    throws java.lang.Exception
Return a proxy to a new instance of the specified class. Construct the instance on the VM with the specified URL. Use the constructor with the specified signature and arguments.
Parameters:
classname - The full name of the class.
signature - The simple name ("") or the full method signature.
args - Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.
url - The URL of the target VM.
Throws:
java.lang.Exception - The reason that construction failed.

create

public static Proxy create(java.lang.String classname,
                           java.lang.Object[] args,
                           java.lang.String url)
                    throws java.lang.Exception
Return a proxy to a new instance of the specified class. Construct the instance on the VM with the specified URL. Use the constructor that matches the specified arguments.
Parameters:
classname - The full name of the class.
args - Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.
url - The URL of the target VM.
Throws:
java.lang.Exception - The reason that construction failed.

create

public static Proxy create(java.lang.String classname,
                           java.lang.Object[] args)
                    throws java.lang.Exception
Return a proxy to a new instance of the specified class. Construct the instance in the local VM. Use the constructor that matches the specified arguments.
Parameters:
classname - The full name of the class.
args - Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.
Throws:
java.lang.Exception - The reason that construction failed.

create

public static Proxy create(java.lang.String classname,
                           java.lang.String url)
                    throws java.lang.Exception
Return a proxy to a new instance of the specified class. Construct the instance on the VM with the specified URL. Use the default constructor.
Parameters:
classname - The full name of the class.
url - The URL of the target VM.
Throws:
java.lang.Exception - The reason that construction failed.

create

public static Proxy create(java.lang.String classname)
                    throws java.lang.Exception
Return a proxy to a new instance of the specified class. Construct the instance in the local VM. Use the default constructor.
Parameters:
classname - The full name of the class.
Throws:
java.lang.Exception - The reason that construction failed.

ObjectSpace Inc.

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