Class JavaApplication


  • public class JavaApplication
    extends RunnableApplication
    Component responsible for configuring command line for java based CasProcessor. Each CasProcessor is configured via CPE descriptor either statically (xml file) or dynamically by means of APIs. In both cases, the java-based CasProcessor to be launched by the CPE must be properly setup for launching. Its environment must be setup, command line, and any jvm arguments.
    • Method Detail

      • addApplicationCmdLineArguments

        protected java.lang.String[] addApplicationCmdLineArguments​(CasProcessorConfiguration aCasProcessorConfiguration,
                                                                    java.util.List argList,
                                                                    java.lang.String aExecutable)
                                                             throws ResourceConfigurationException
        Adds to command line any program arguments configured for this Cas Processor in the CPE descriptor
        Parameters:
        aCasProcessorConfiguration - - Cas Processor configuration
        argList - - list of arguments set up in the CPE descriptor
        aExecutable - - executable program
        Returns:
        - complete command line ready for use
        Throws:
        ResourceConfigurationException
      • getExecSpec

        public Execute getExecSpec()
        Returns executable section of the CPE Descriptor for
        Returns:
        executable section of the CPE Descriptor