Class RMIGenerator

java.lang.Object
org.glassfish.rmic.RMIGenerator
All Implemented Interfaces:
Constants, Generator, RMIConstants, Constants, RuntimeConstants

public class RMIGenerator extends Object implements RMIConstants, Generator
A placeholder to handle the no-longer supported JRMP flags. Any attempt to use them will now result in an error.
  • Constructor Details

    • RMIGenerator

      public RMIGenerator()
  • Method Details

    • parseArgs

      public boolean parseArgs(String[] argv, Main main)
      Examine and consume command line arguments.
      Specified by:
      parseArgs in interface Generator
      Parameters:
      argv - The command line arguments. Ignore null and unknown arguments. Set each consumed argument to null.
      main - Report any errors using the main.error() methods.
      Returns:
      true if no errors, false otherwise.
    • generate

      public void generate(BatchEnvironment env, File destDir, ClassDefinition cdef)
      Generate the source files for the stub and/or skeleton classes needed by RMI for the given remote implementation class.
      Specified by:
      generate in interface Generator
      Parameters:
      env - compiler environment
      destDir - directory for the root of the package hierarchy
      cdef - definition of remote implementation class to generate stubs and/or skeletons for