Class cam.codegen.CreateNetAppWrappers

java.lang.Object
   |
   +----cam.codegen.CreateNetAppWrappers

public class CreateNetAppWrappers
extends Object
A class for creating remote and server wrappers to be used with the cam.netapp distributed application infrastructure. See NetApp Wrappers for documentation about how to construct distributed applications using these wrapper classes.
#   Input  <-- className
#    
#   Output --> classNameCI (client class implementation)
#          --> classNameSI (server class implementation)
The creation of the wrapper classes must be re-done every time the method interface to the input class changes.

Target and derived class locations for use with cam.netapp infrastructure

Local                                   |        Remote
-------                                 |      ----------
Client Application (uses classNameCI)   |       className.class
ClassNameCI.class                       |       classNameSI.class

Version:
9/22/98
Author:
Chris Anderson (C) UCLA 1998

Constructor Index

 o CreateNetAppWrappers()

Method Index

 o createClientImplementation()
Creates the client implementation class.
 o createServerCode()
Creates the server implementation class.
 o getLocalClassName()
Returns the name of the target class without the package prefix.
 o main(String[])
Command line invocation routine.
 o setClass(String)
Sets the target class.

Constructors

 o CreateNetAppWrappers
 public CreateNetAppWrappers()

Methods

 o setClass
 public void setClass(String cName) throws ClassNotFoundException
Sets the target class.

Parameters:
cName - Target class name (full classname - e.g. with package prefix if any).
Throws: ClassNotFoundException
if target class is not found.
 o getLocalClassName
 public String getLocalClassName()
Returns the name of the target class without the package prefix.

 o createClientImplementation
 public String[] createClientImplementation()
Creates the client implementation class.

Returns:
a String array, each element being a line of the class code.
 o createServerCode
 public String[] createServerCode()
Creates the server implementation class.

Returns:
a String array, each element being a line of the class code.
 o main
 public static void main(String args[])
Command line invocation routine. Creates the the client and server implementations. Compiles the client and server classes.

Parameters:
args[] - Target class; specified with a full classname (e.g. including a package prefix if any).