public class CommandLineConfigSource extends java.lang.Object implements ConfigSource
Modifier and Type | Field and Description |
---|---|
private RawArgs |
args |
private java.nio.file.Path |
basePath |
private java.nio.file.Path |
homePath |
static java.lang.String |
ORIGIN_CMD_LINE |
static java.lang.String |
ORIGIN_INTERNAL_FALLBACK |
static java.lang.String |
ORIGIN_SYSTEM_PROPERTY |
private Props |
props |
Constructor and Description |
---|
CommandLineConfigSource(java.lang.String[] rawargs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
private java.nio.file.Path |
findJettyBasePath() |
private java.nio.file.Path |
findJettyHomePath() |
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, wait
getStartInis
public 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
private final RawArgs args
private final Props props
private final java.nio.file.Path homePath
private final java.nio.file.Path basePath
public CommandLineConfigSource(java.lang.String[] rawargs)
private final java.nio.file.Path findJettyBasePath()
private final java.nio.file.Path findJettyHomePath()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public RawArgs getArgs()
ConfigSource
getArgs
in interface ConfigSource
public java.nio.file.Path getBasePath()
public java.nio.file.Path getHomePath()
public java.lang.String getId()
ConfigSource
Used in end-user display of the source.
getId
in interface ConfigSource
public java.lang.String getProperty(java.lang.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
public int hashCode()
hashCode
in class java.lang.Object
public 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.Object