nathan.middleware
Class StubSkeletonGenerator

java.lang.Object
  extended by nathan.middleware.StubSkeletonGenerator

public class StubSkeletonGenerator
extends java.lang.Object

The program then generates a stub and a skeleton for the middleware system.

To run the application: SubSkeletonGenerator [Class Name] [Interface Name]

Class name is the name of the class to generate the stubs and skeletons for.
Interface name is the name of the Interface that the stub will implement.

A sample of how run the StubSkeletonGenerator is:

java nathan/middleware/StubSkeletonGenerator nathan.middleware.StudentListImpl nathan.middleware.StudentList

Author:
Nathan Balon
Advance Operating Systems CIS 578
University of Michigan Dearborn
Remote Method Invocation Middleware Project

Method Summary
 void createSkeleton(java.lang.String className, java.lang.String interfaceName)
          Creates a new skeleton file for a class to be used to remotely access a remote object on the server.
 void createStub(java.lang.String className, java.lang.String interfaceName)
          Creates the stub file that the client wil use to access the remote object on the server.
static void main(java.lang.String[] args)
          main entry point to the StubSkeletonGenerator apllication
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
main entry point to the StubSkeletonGenerator apllication

Parameters:
args - The command line arguments required are the class name and interface name of the the stub and skeletons to be generated

createSkeleton

public void createSkeleton(java.lang.String className,
                           java.lang.String interfaceName)
Creates a new skeleton file for a class to be used to remotely access a remote object on the server.

Parameters:
className - The name of the class that is to have a skeleton created for it.
interfaceName - The name of the interface that the remote object will implement.

createStub

public void createStub(java.lang.String className,
                       java.lang.String interfaceName)
Creates the stub file that the client wil use to access the remote object on the server. The stub acts as a proxy forwarding all calls to the server.

Parameters:
className - The name of the class to generate the stub for.
interfaceName - The name of the interface to use to access the stub object.