org.ops4j.pax.runner
Interface CommandLine

All Known Implementing Classes:
CommandLineImpl

public interface CommandLine

Abstracts accesss to command line arguments.

Since:
August 26, 2007
Author:
Alin Dreghiciu

Field Summary
static java.lang.String OPTION_BOOT_CP_APPEND
          Boot classpath appended option.
static java.lang.String OPTION_BOOT_CP_PREPEND
          Boot classpath prepended option.
static java.lang.String OPTION_CONFIG
          Configuration url option.
static java.lang.String OPTION_CONSOLE
          Console option.
static java.lang.String OPTION_EXECUTOR
          Executor option.
static java.lang.String OPTION_HANDLERS
          Handlers option.
static java.lang.String OPTION_LOG
          Debug option.
static java.lang.String OPTION_PLATFORM
          Platform option.
static java.lang.String OPTION_PLATFORM_VERSION
          Platform version option.
static java.lang.String OPTION_PLATFORM_VERSION_SNAPSHOT
          Platform snapshot version option.
static java.lang.String OPTION_PROFILES
          Profiles option.
static java.lang.String OPTION_PROFILES_GROUPID
          Profiles group id.
static java.lang.String OPTION_PROFILES_REPO
          Profiles repository.
static java.lang.String OPTION_SCANNERS
          Scanners option.
static java.lang.String OPTION_SERVICES
          Services option.
static java.lang.String OPTION_SHELL
          Shell option.
static java.lang.String PLATFORM_VERSION_SNAPSHOT
          Platform snapshot version.
 
Method Summary
 java.util.List<java.lang.String> getArguments()
          Returns the list of all arguments.
 java.lang.String[] getMultipleOption(java.lang.String key)
          Returns the values of an array option (multiple values) by key.
 java.lang.String getOption(java.lang.String key)
          Returns the value of an option by key.
 

Field Detail

OPTION_CONFIG

static final java.lang.String OPTION_CONFIG
Configuration url option.

See Also:
Constant Field Values

OPTION_LOG

static final java.lang.String OPTION_LOG
Debug option.

See Also:
Constant Field Values

OPTION_HANDLERS

static final java.lang.String OPTION_HANDLERS
Handlers option.

See Also:
Constant Field Values

OPTION_SCANNERS

static final java.lang.String OPTION_SCANNERS
Scanners option.

See Also:
Constant Field Values

OPTION_PLATFORM

static final java.lang.String OPTION_PLATFORM
Platform option.

See Also:
Constant Field Values

OPTION_EXECUTOR

static final java.lang.String OPTION_EXECUTOR
Executor option.

See Also:
Constant Field Values

OPTION_SERVICES

static final java.lang.String OPTION_SERVICES
Services option.

See Also:
Constant Field Values

OPTION_PLATFORM_VERSION

static final java.lang.String OPTION_PLATFORM_VERSION
Platform version option.

See Also:
Constant Field Values

OPTION_PLATFORM_VERSION_SNAPSHOT

static final java.lang.String OPTION_PLATFORM_VERSION_SNAPSHOT
Platform snapshot version option.

See Also:
Constant Field Values

PLATFORM_VERSION_SNAPSHOT

static final java.lang.String PLATFORM_VERSION_SNAPSHOT
Platform snapshot version.

See Also:
Constant Field Values

OPTION_BOOT_CP_PREPEND

static final java.lang.String OPTION_BOOT_CP_PREPEND
Boot classpath prepended option.

See Also:
Constant Field Values

OPTION_BOOT_CP_APPEND

static final java.lang.String OPTION_BOOT_CP_APPEND
Boot classpath appended option.

See Also:
Constant Field Values

OPTION_PROFILES

static final java.lang.String OPTION_PROFILES
Profiles option.

See Also:
Constant Field Values

OPTION_CONSOLE

static final java.lang.String OPTION_CONSOLE
Console option.

See Also:
Constant Field Values

OPTION_SHELL

static final java.lang.String OPTION_SHELL
Shell option.

See Also:
Constant Field Values

OPTION_PROFILES_REPO

static final java.lang.String OPTION_PROFILES_REPO
Profiles repository.

See Also:
Constant Field Values

OPTION_PROFILES_GROUPID

static final java.lang.String OPTION_PROFILES_GROUPID
Profiles group id.

See Also:
Constant Field Values
Method Detail

getOption

java.lang.String getOption(java.lang.String key)
Returns the value of an option by key. If option is not defined returns null.

Parameters:
key - option key
Returns:
The option value.

getMultipleOption

java.lang.String[] getMultipleOption(java.lang.String key)
Returns the values of an array option (multiple values) by key. If option is not defined returns empty array.

Parameters:
key - option key
Returns:
The option values as array.

getArguments

java.util.List<java.lang.String> getArguments()
Returns the list of all arguments.

Returns:
list of arguments; if there are no arrguments returns an empty list


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.