public abstract class LauncherConfig extends Object
As the launcher class is used for starting both the command-line tool and the Anchor GUI, this provides the necessary application-specific configuration for each.
Constructor and Description |
---|
LauncherConfig() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addAdditionalOptions(org.apache.commons.cli.Options options) |
protected abstract Class<?> |
classInCurrentJar()
A class which we use to determine the base location for pathRelativeProperties.
|
abstract ExecutionArguments |
createArguments(org.apache.commons.cli.CommandLine line) |
ExperimentExecutor |
createExperimentExecutor(org.apache.commons.cli.CommandLine line) |
abstract void |
customizeExperimentExecutor(ExperimentExecutor executor,
org.apache.commons.cli.CommandLine line) |
abstract HelpConfig |
help()
Config for displaying help message
|
abstract boolean |
newlinesBeforeError()
if true, then some extra newlines are inserted before error messages
|
protected abstract String |
pathRelativeProperties()
Path to a property file that defines a relative-path to the default experiment in bean XML.
|
abstract Resources |
resources()
Config for resources sued by the launcher
|
public abstract Resources resources()
public abstract HelpConfig help()
public abstract boolean newlinesBeforeError()
This useful for the GUI client in Windows due to WinRun4j running as a Windows app, and not as a shell app. This changes how output is displayed;
public abstract ExecutionArguments createArguments(org.apache.commons.cli.CommandLine line) throws ExperimentExecutionException
ExperimentExecutionException
public abstract void addAdditionalOptions(org.apache.commons.cli.Options options)
public ExperimentExecutor createExperimentExecutor(org.apache.commons.cli.CommandLine line) throws ExperimentExecutionException
ExperimentExecutionException
public abstract void customizeExperimentExecutor(ExperimentExecutor executor, org.apache.commons.cli.CommandLine line) throws ExperimentExecutionException
ExperimentExecutionException
protected abstract String pathRelativeProperties()
protected abstract Class<?> classInCurrentJar()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.