org.foray.app
Class CommandLineStarter

java.lang.Object
  extended by org.foray.app.Starter
      extended by org.foray.app.CommandLineStarter
Direct Known Subclasses:
AWTStarter, PrintStarter

public class CommandLineStarter
extends Starter

Superclass for all classes which start FOray from the commandline.


Constructor Summary
CommandLineStarter(SessionConfig sessionConfig, OutputConfig outputConfig, CommandLineOptions commandLineOptions)
          Constructor.
 
Method Summary
 CommandLineOptions getCommandLineOptions()
          Returns the parsed command-line options.
 InputSource getInputSource()
          Returns the input source.
 void run()
          Runs the process.
 
Methods inherited from class org.foray.app.Starter
getLogger, getOptions, getOutputConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineStarter

public CommandLineStarter(SessionConfig sessionConfig,
                          OutputConfig outputConfig,
                          CommandLineOptions commandLineOptions)
                   throws FOrayException
Constructor.

Parameters:
sessionConfig - The session configuration.
outputConfig - The output configuratiion.
commandLineOptions - The command-line options.
Throws:
FOrayException - For errors during construction.
Method Detail

run

public void run()
         throws FOrayException
Description copied from class: Starter
Runs the process.

Specified by:
run in class Starter
Throws:
FOrayException - For errors during processing.

getCommandLineOptions

public CommandLineOptions getCommandLineOptions()
Returns the parsed command-line options.

Returns:
Returns the commandLineOptions.

getInputSource

public InputSource getInputSource()
                           throws FOrayException
Description copied from class: Starter
Returns the input source.

Specified by:
getInputSource in class Starter
Returns:
Returns the inputSource.
Throws:
FOrayException - For errors creaing the input source.


Copyright © 2017. All rights reserved.