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
-
CreateNetAppWrappers()
-
-
createClientImplementation()
- Creates the client implementation class.
-
createServerCode()
- Creates the server implementation class.
-
getLocalClassName()
- Returns the name of the target class without the package prefix.
-
main(String[])
- Command line invocation routine.
-
setClass(String)
- Sets the target class.
CreateNetAppWrappers
public CreateNetAppWrappers()
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.
getLocalClassName
public String getLocalClassName()
- Returns the name of the target class without the package prefix.
createClientImplementation
public String[] createClientImplementation()
- Creates the client implementation class.
- Returns:
- a String array, each element being a line of the class code.
createServerCode
public String[] createServerCode()
- Creates the server implementation class.
- Returns:
- a String array, each element being a line of the class code.
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).