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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddPossibleProperty(String arg, String source) Add a potential argument as a property.cleanReference(String property) booleancontainsKey(String key) static Stringstatic booleanhasPropertyKey(String name) iterator()static Propsload(ClassLoader classLoader, String resourceName) static Propsvoidreset()voidsetProperty(String key, String value, String origin) voidsetProperty(Props.Prop prop) voidsetSystemProperty(String key, String value) intsize()voidstore(OutputStream stream, String comments) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
iteratorin interfaceIterable<Props.Prop>
-
reset
public void reset() -
setProperty
-
setProperty
-
size
public int size() -
store
- Throws:
IOException
-
setSystemProperty
-
toString
-
load
-
load
-