Xvcl Pages; [ Cjos Audience]
Overview
About this document
This document provides recommendations for XVCL.
Section A - Subprogram
Introduction
The XVCL processor should be improved.
- It should be a re-usable subprogram, and a Java application.
- It should use relative resources, something like HTML, rather than resources based upon the current directory.
- It should be call-able from Ant as a subprogram.
- It should be re-usable itself, using the XVCL processor to generate its Java source code.
- It should throw an exception to stop processing prematurely. It should never, ever invoke the System.exit() method.
Tracing
- The xvcl.XVCL class provides a main() method for backward compatibility with the java tool.
- The main() method for a Java application should be in a class called xvcl.Main.
- The main() method creates a new instance of xvcl.XVCL.
- The main() method processes the command line, one argument at a time.
- The main() method invokes process().
- The outmsg property is boolean. When true, additional messages are printed.
- The process() method invokes OptionTable.init(), a static method.
- When an OptionTable object is static, it does not allow for multi-threaded XVCL processing within a virtual machine. This architecture limits the use of the XVCL processor in other Java environments, such as called by a servlet, EJB, Ant task.
- The process() method invokes parseOption().
- The parseOption() method sets the properties of OptionTable from command-line arguments.
- The -A or -a option sets the OptionA property of OptionTable. In turn, it sets the append variable in the process() method.
- The process() method sets the SPC URL.
- OptionTable.addOption("StartTime", Long.toString(startTime))
- The process() method invokes FrameParser.build().
- The process() method invokes FileList.getInstance().
- The process() method uses OPTION_V, for verbose-file-dir and verbose-file-name.
|