Interface ConfigValue


  • public interface ConfigValue
    The ConfigValue holds additional information after the lookup of a configuration property and is itself immutable.

    Holds information about the configuration property name, configuration value, the ConfigSource name from where the configuration property was loaded and the ordinal of the ConfigSource.

    This is used together with Config to expose the configuration property lookup metadata.

    Since:
    2.0
    • Method Detail

      • getName

        java.lang.String getName()
        The name of the property.
        Returns:
        the name of the property.
      • getValue

        java.lang.String getValue()
        The value of the property lookup with transformations (expanded, etc).
        Returns:
        the value of the property lookup or null if the property could not be found
      • getRawValue

        java.lang.String getRawValue()
        The value of the property lookup without any transformation (expanded , etc).
        Returns:
        the raw value of the property lookup or null if the property could not be found.
      • getSourceName

        java.lang.String getSourceName()
        The ConfigSource name that loaded the property lookup.
        Returns:
        the ConfigSource name that loaded the property lookup or null if the property could not be found
      • getSourceOrdinal

        int getSourceOrdinal()
        The ConfigSource ordinal that loaded the property lookup.
        Returns:
        the ConfigSource ordinal that loaded the property lookup or 0 if the property could not be found