org.objectweb.jeremie.tools.jrmic
Class JRMICompiler

java.lang.Object
  extended byorg.objectweb.jeremie.tools.jrmic.JRMICompiler

public class JRMICompiler
extends Object

Provides an implementation of a stub compiler for generating standard Jeremie stub classes, and optimised Jeremie stub and skeleton classes.

Given a remote class, the stub compiler generates a standard stub class when used with the -std option, and generates optimised stubs and skeletons when used with the -opt option. In both cases, generated stubs have exactly the same set of remote interfaces as the input remote class.

Usage: java org.objectweb.jeremie.tools.jrmic.JRMICompiler [ options ] [ class names ]

Options:

-std generate standard stub classes (default)
-opt generate optimised stub/skeleton classes
-v, -verbose print details of what the compiler is doing
-keep, -keepgenerated do not delete generated source files
-noc do not compile generated source files (implies -keep)
-c <java compiler> compile generated source files with this java compiler
(defaults to javac)
-classpath <path> extra classpath passed to -c compiler
-d <directory> root directory for generated class files
(defaults to current directory)
-s <directory> root directory for generated source files
(defaults to -d directory)

The input class must directly implement at least one remote interface, that is, in its implements clause, it must declare that it implements at least one remote interface.

A remote interface is an interface that satisfies the following conditions:

  1. it must extend or be java.rmi.Remote
  2. each of its methods must throw java.rmi.RemoteException or one of its superclasses

See Also:
Remote, RemoteException, StdStub

Method Summary
static boolean isOsMacOsX()
           
static void main(String[] args)
          Runs the stub compiler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Runs the stub compiler.

Parameters:
args - - options and input remote class names to the stub compiler.

isOsMacOsX

public static boolean isOsMacOsX()
Returns:
true if the os.name starts with "Mac OS X"