Class Recorder

java.lang.Object
ee.jakarta.tck.ws.rs.signaturetest.Recorder
Direct Known Subclasses:
ApiCheckRecorder, SigTestRecorder

public abstract class Recorder extends Object
  • Field Details

    • signatureMap

      protected Properties signatureMap
    • packageListFile

      protected String packageListFile
    • classpath

      protected String classpath
    • signatureRepositoryDir

      protected String signatureRepositoryDir
    • signatureMapFile

      protected String signatureMapFile
  • Constructor Details

    • Recorder

      public Recorder(String[] args)
  • Method Details

    • batchRecord

      public void batchRecord()

      Record the signatures for each package listed in the TS_HOME/bin/sig-test.map file.

    • writePackageListFile

      protected abstract void writePackageListFile(String basePackageName, String signatureFile, String packageListFile) throws Exception
      Write, to a separate file, all of the packages that were recorded. How this is accomplised will be dependent on the framework.
      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
    • createCommandLine

      protected abstract String[] createCommandLine(String version, String classpath, String outputFileName, String packageName)
      Create a array of arguments appropriate for use with different signature recording frameworks.
      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
    • doRecord

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