org.springframework.boot.actuate.autoconfigure.metrics.export.properties

Class PropertiesConfigAdapter<T>

  • java.lang.Object
    • org.springframework.boot.actuate.autoconfigure.metrics.export.properties.PropertiesConfigAdapter<T>
    • Constructor Detail

      • PropertiesConfigAdapter

        public PropertiesConfigAdapter(T properties)
        Create a new PropertiesConfigAdapter instance.
        Parameters:
        properties - the source properties
    • Method Detail

      • get

        protected final <V> V get(Function<T,V> getter,
                                  Supplier<V> fallback)
        Get the value from the properties or use a fallback from the defaults.
        Type Parameters:
        V - the value type
        Parameters:
        getter - the getter for the properties
        fallback - the fallback method, usually super interface method reference
        Returns:
        the property or fallback value