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_CONFIG
          Configuration url 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_SCANNERS
          Scanners option.
static java.lang.String OPTION_SERVICES
          Services option.
 
Method Summary
 java.util.List<java.lang.String> getArguments()
          Returns the list of all arguments.
 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_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
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.

getArguments

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

Returns:
list of arguments


Copyright © 2008. All Rights Reserved.