public class CommandLineConfigSource extends java.lang.Object implements ConfigSource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ORIGIN_CMD_LINE |
static java.lang.String |
ORIGIN_INTERNAL_FALLBACK |
static java.lang.String |
ORIGIN_SYSTEM_PROPERTY |
| Constructor and Description |
|---|
CommandLineConfigSource(java.lang.String[] rawargs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
RawArgs |
getArgs()
The list of Arguments for this ConfigSource
|
java.nio.file.Path |
getBasePath() |
java.nio.file.Path |
getHomePath() |
java.lang.String |
getId()
The identifier for this source.
|
java.lang.String |
getProperty(java.lang.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(java.lang.String key,
java.lang.String value,
java.lang.String origin) |
void |
setSystemProperty(java.lang.String key,
java.lang.String value) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetStartInispublic static final java.lang.String ORIGIN_INTERNAL_FALLBACK
public static final java.lang.String ORIGIN_CMD_LINE
public static final java.lang.String ORIGIN_SYSTEM_PROPERTY
public CommandLineConfigSource(java.lang.String[] rawargs)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic RawArgs getArgs()
ConfigSourcegetArgs in interface ConfigSourcepublic java.nio.file.Path getBasePath()
public java.nio.file.Path getHomePath()
public java.lang.String getId()
ConfigSourceUsed in end-user display of the source.
getId in interface ConfigSourcepublic java.lang.String getProperty(java.lang.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 ConfigSourcepublic int hashCode()
hashCode in class java.lang.Objectpublic void setProperty(java.lang.String key,
java.lang.String value,
java.lang.String origin)
public void setSystemProperty(java.lang.String key,
java.lang.String value)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2022 Webtide. All rights reserved.