Package io.deephaven.configuration
Class PropertyHistory
java.lang.Object
io.deephaven.configuration.PropertyHistory
A simple datastore to record one step in the history of a property. A property may have its value overwritten by
subsequent declarations or in subsequent files, but it is convenient to be able to identify what the active value of
a property is, where that value was created, and what other values the property may have been assigned by other files
before getting to this final value.
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
The full string of the active context.final String
The name of the file where the property value was set, or a note that the value was not set by a configuration file.final int
The number of the line within the file where the property value was set.final String
The value that the property was set to by the specified line number in the specified file. -
Constructor Summary
ConstructorDescriptionPropertyHistory
(String fileName, int lineNumber, String value, String context) Create a PropertyHistory element. -
Method Summary
-
Field Details
-
fileName
The name of the file where the property value was set, or a note that the value was not set by a configuration file. -
lineNumber
public final int lineNumberThe number of the line within the file where the property value was set. If the property value was not set via a configuration file (such as a system property or a programmatic change of value), then this should be 0. -
value
The value that the property was set to by the specified line number in the specified file. -
context
The full string of the active context.
-
-
Constructor Details
-
PropertyHistory
Create a PropertyHistory element.- Parameters:
fileName
- The name of the file where this property value was setlineNumber
- The number of the line within the file where this property value was set.value
- The value this property was set to on the specified line in the specified file.
-