Record Class PropertiesResolvedValue
java.lang.Object
java.lang.Record
org.apache.camel.spi.PropertiesResolvedValue
public record PropertiesResolvedValue(String name, String originalValue, String value, @Nullable String defaultValue, @Nullable String source)
extends Record
Captures how a single
PropertiesComponent property placeholder was resolved, for inspection and tooling.
Each instance records the placeholder name, the originalValue (the raw placeholder expression), the
resolved value, any defaultValue that applied, and the source that provided the value. Camel
tracks these so the resolved configuration can be reviewed, for example by the developer console or diagnostics.
See Using PropertyPlaceholder in the
Camel user manual.- Since:
- 4.9
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theoriginalValuerecord component.@Nullable Stringsource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
PropertiesResolvedValue
public PropertiesResolvedValue(String name, String originalValue, String value, @Nullable String defaultValue, @Nullable String source) Creates an instance of aPropertiesResolvedValuerecord class.- Parameters:
name- the value for thenamerecord componentoriginalValue- the value for theoriginalValuerecord componentvalue- the value for thevaluerecord componentdefaultValue- the value for thedefaultValuerecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
originalValue
Returns the value of theoriginalValuerecord component.- Returns:
- the value of the
originalValuerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-