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()
ConfigSourcegetArgs in interface ConfigSourcepublic Path getBasePath()
public Path getHomePath()
public String getId()
ConfigSourceUsed in end-user display of the source.
getId in interface ConfigSourcepublic String getProperty(String key)
ConfigSourcegetProperty in interface ConfigSourcekey - the key to lookuppublic Props getProps()
ConfigSourcegetProps in interface ConfigSourcepublic int getWeight()
ConfigSourceRecommended 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 ConfigSourceCopyright © 1995-2015 Webtide. All Rights Reserved.