Class SigTestRecorder

java.lang.Object
ee.jakarta.tck.ws.rs.signaturetest.Recorder
ee.jakarta.tck.ws.rs.signaturetest.SigTestRecorder

public class SigTestRecorder extends Recorder

This implementation of Recorder will record signatures using the Signature Test framework.

  • Constructor Details

    • SigTestRecorder

      public SigTestRecorder(String[] args)
  • Method Details

    • createCommandLine

      protected String[] createCommandLine(String version, String classpath, String outputFileName, String packageName)
      Description copied from class: Recorder
      Create a array of arguments appropriate for use with different signature recording frameworks.
      Specified by:
      createCommandLine in class Recorder
      Parameters:
      version - The version of the API
      classpath - the classpath containing classes that will be recorded
      outputFileName - the file in which to write the recorded signatures to
      packageName - the base package name of the signatures that will be recorded
    • writePackageListFile

      protected void writePackageListFile(String basePackageName, String signatureFile, String packageListFile) throws Exception
      Description copied from class: Recorder
      Write, to a separate file, all of the packages that were recorded. How this is accomplised will be dependent on the framework.
      Specified by:
      writePackageListFile in class Recorder
      Parameters:
      basePackageName - the base package
      signatureFile - the file in which the signatures were recorded to
      packageListFile - the name of the package list file (which may or may not exist)
      Throws:
      Exception - if an error occurs writing the file
    • doRecord

      protected void doRecord(String[] commandLine) throws Exception
      Description copied from class: Recorder
      Perform whatever action in necessary to do the actual recording of the signatures.
      Specified by:
      doRecord in class Recorder
      Parameters:
      commandLine - the options to invoke the recording facility
      Throws:
      Exception - if an error occurs during the record process