Package org.eclipse.jetty.start.config
Class CommandLineConfigSource
- java.lang.Object
-
- org.eclipse.jetty.start.config.CommandLineConfigSource
-
- All Implemented Interfaces:
ConfigSource
public class CommandLineConfigSource extends Object implements ConfigSource
Configuration Source representing the Command Line arguments.
-
-
Field Summary
Fields Modifier and Type Field Description static StringORIGIN_CMD_LINEstatic StringORIGIN_INTERNAL_FALLBACKstatic StringORIGIN_SYSTEM_PROPERTY
-
Constructor Summary
Constructors Constructor Description CommandLineConfigSource(String[] rawargs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)RawArgsgetArgs()The list of Arguments for this ConfigSourcePathgetBasePath()PathgetHomePath()StringgetId()The identifier for this source.StringgetProperty(String key)Return the value of the specified property.PropsgetProps()The properties for this ConfigSourceintgetWeight()The weight of this source, used for proper ordering of the config source search order.inthashCode()voidsetProperty(String key, String value, String origin)voidsetSystemProperty(String key, String value)StringtoString()-
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 Detail
-
ORIGIN_INTERNAL_FALLBACK
public static final String ORIGIN_INTERNAL_FALLBACK
- See Also:
- Constant Field Values
-
ORIGIN_CMD_LINE
public static final String ORIGIN_CMD_LINE
- See Also:
- Constant Field Values
-
ORIGIN_SYSTEM_PROPERTY
public static final String ORIGIN_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommandLineConfigSource
public CommandLineConfigSource(String[] rawargs)
-
-
Method Detail
-
getArgs
public RawArgs getArgs()
Description copied from interface:ConfigSourceThe list of Arguments for this ConfigSource- Specified by:
getArgsin interfaceConfigSource- Returns:
- the list of Arguments for this ConfigSource
-
getBasePath
public Path getBasePath()
-
getHomePath
public Path getHomePath()
-
getId
public String getId()
Description copied from interface:ConfigSourceThe identifier for this source.Used in end-user display of the source.
- Specified by:
getIdin interfaceConfigSource- Returns:
- the configuration source identifier.
-
getProperty
public String getProperty(String key)
Description copied from interface:ConfigSourceReturn the value of the specified property.- Specified by:
getPropertyin interfaceConfigSource- Parameters:
key- the key to lookup- Returns:
- the value of the property, or null if not found
-
getProps
public Props getProps()
Description copied from interface:ConfigSourceThe properties for this ConfigSource- Specified by:
getPropsin interfaceConfigSource- Returns:
- the properties for this ConfigSource
-
getWeight
public int getWeight()
Description copied from interface:ConfigSourceThe 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:
getWeightin interfaceConfigSource- Returns:
- the weight of the config source. (lower value is more important)
-
-