Class PropertiesConfigAdapter<T>

  • java.lang.Object
    • Constructor Detail

      • PropertiesConfigAdapter

        public PropertiesConfigAdapter(T properties)
        Create a new PropertiesConfigAdapter instance.
        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
        getter - the getter for the properties
        fallback - the fallback method, usually super interface method reference
        the property or fallback value