Package org.eclipse.jetty.start.config
Class CommandLineConfigSource
java.lang.Object
org.eclipse.jetty.start.config.CommandLineConfigSource
- All Implemented Interfaces:
ConfigSource
Configuration Source representing the Command Line arguments.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getArgs()
The list of Arguments for this ConfigSourcegetId()
The identifier for this source.getProperty
(String key) Return the value of the specified property.getProps()
The properties for this ConfigSourceint
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) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.start.config.ConfigSource
getStartInis
-
Field Details
-
ORIGIN_INTERNAL_FALLBACK
- See Also:
-
ORIGIN_CMD_LINE
- See Also:
-
ORIGIN_SYSTEM_PROPERTY
- See Also:
-
-
Constructor Details
-
CommandLineConfigSource
-
-
Method Details
-
equals
-
getArgs
Description copied from interface:ConfigSource
The list of Arguments for this ConfigSource- Specified by:
getArgs
in interfaceConfigSource
- Returns:
- the list of Arguments for this ConfigSource
-
getBasePath
-
getHomePath
-
getId
Description copied from interface:ConfigSource
The identifier for this source.Used in end-user display of the source.
- Specified by:
getId
in interfaceConfigSource
- Returns:
- the configuration source identifier.
-
getProperty
Description copied from interface:ConfigSource
Return the value of the specified property.- Specified by:
getProperty
in interfaceConfigSource
- Parameters:
key
- the key to lookup- Returns:
- the value of the property, or null if not found
-
getProps
Description copied from interface:ConfigSource
The properties for this ConfigSource- Specified by:
getProps
in interfaceConfigSource
- Returns:
- the properties for this ConfigSource
-
getWeight
public int getWeight()Description copied from interface:ConfigSource
The weight of this source, used for proper ordering of the config source search order.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
- Specified by:
getWeight
in interfaceConfigSource
- Returns:
- the weight of the config source. (lower value is more important)
-
hashCode
public int hashCode() -
setProperty
-
setSystemProperty
-
toString
-