public class CommandLineConfigSource extends Object implements ConfigSource
Modifier and Type | Field and Description |
---|---|
static String |
ORIGIN_CMD_LINE |
static String |
ORIGIN_INTERNAL_FALLBACK |
Constructor and Description |
---|
CommandLineConfigSource(String[] rawargs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
RawArgs |
getArgs()
The list of Arguments for this ConfigSource
|
Path |
getBasePath() |
Path |
getHomePath() |
String |
getId()
The identifier for this source.
|
String |
getProperty(String key)
Return the value of the specified property.
|
Props |
getProps()
The properties for this ConfigSource
|
int |
getWeight()
The weight of this source, used for proper ordering of the config source search order.
|
int |
hashCode() |
void |
setProperty(String key,
String value,
String origin) |
void |
setSystemProperty(String key,
String value) |
String |
toString() |
public static final String ORIGIN_INTERNAL_FALLBACK
public static final String ORIGIN_CMD_LINE
public CommandLineConfigSource(String[] rawargs)
public RawArgs getArgs()
ConfigSource
getArgs
in interface ConfigSource
public Path getBasePath()
public Path getHomePath()
public String getId()
ConfigSource
Used in end-user display of the source.
getId
in interface ConfigSource
public String getProperty(String key)
ConfigSource
getProperty
in interface ConfigSource
key
- the key to lookuppublic Props getProps()
ConfigSource
getProps
in interface ConfigSource
public int getWeight()
ConfigSource
Recommended Weights:
-1 = the command line 0 = the ${jetty.base} source [1..n] = include-jetty-dir entries from command line [n+1..n] = include-jetty-dir entries from start.ini (or start.d/*.ini) 9999999 = the ${jetty.home} source
getWeight
in interface ConfigSource
Copyright © 1995-2015 Webtide. All Rights Reserved.