public class DirConfigSource extends java.lang.Object implements ConfigSource
ConfigSource
.
Such as ${jetty.base}
or and --include-jetty-dir=[path]
sources.
Constructor and Description |
---|
DirConfigSource(java.lang.String id,
java.nio.file.Path dir,
int weight,
boolean canHaveArgs)
Create DirConfigSource with specified identifier and directory.
|
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 |
getDir() |
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
|
java.util.Set<StartIni> |
getStartInis() |
int |
getWeight()
The weight of this source, used for proper ordering of the config source search order.
|
int |
hashCode() |
boolean |
isPropertyBased() |
java.lang.String |
toString() |
public DirConfigSource(java.lang.String id, java.nio.file.Path dir, int weight, boolean canHaveArgs) throws java.io.IOException
id
- the identifier for this ConfigSource
dir
- the directory for this ConfigSource
weight
- the configuration weight (used for search order)canHaveArgs
- true if this directory can have start.ini or start.d entries. (false for directories like ${jetty.home}, for example)java.io.IOException
- if unable to load the configuration argspublic java.util.Set<StartIni> getStartInis()
getStartInis
in interface ConfigSource
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 getDir()
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 boolean isPropertyBased()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1995–2023 Webtide. All rights reserved.