Package org.eclipse.jetty.start
Class Props
java.lang.Object
org.eclipse.jetty.start.Props
- All Implemented Interfaces:
Iterable<Props.Prop>
Management of Properties.
This is larger in scope than the standard Properties
, as it will also handle tracking the origin of each property, if it was overridden,
and also allowing for ${property}
expansion.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addPossibleProperty
(String arg, String source) Add a potential argument as a property.cleanReference
(String property) boolean
containsKey
(String key) static String
static boolean
hasPropertyKey
(String name) iterator()
static Props
load
(ClassLoader classLoader, String resourceName) static Props
void
reset()
void
setProperty
(String key, String value, String origin) void
setProperty
(Props.Prop prop) void
setSystemProperty
(String key, String value) int
size()
void
store
(OutputStream stream, String comments) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
ORIGIN_SYSPROP
- See Also:
-
-
Constructor Details
-
Props
public Props()
-
-
Method Details
-
getValue
-
getValues
-
addAll
-
addPossibleProperty
Add a potential argument as a property.If arg is not a property, ignore it.
- Parameters:
arg
- the argument to parse for a potential propertysource
- the source for this argument (to track origin of property from)- Returns:
- true if the property was added, false if the property wasn't added
-
cleanReference
-
containsKey
-
expand
-
getProp
-
getProp
-
getString
-
getString
-
hasPropertyKey
-
iterator
- Specified by:
iterator
in interfaceIterable<Props.Prop>
-
reset
public void reset() -
setProperty
-
setProperty
-
size
public int size() -
store
- Throws:
IOException
-
setSystemProperty
-
toString
-
load
-
load
-