static <U> SystemPropertySupplier<U> |
SystemPropertySupplier.create(@NotNull java.lang.String propName,
U defaultValue) |
Create it for a given property name and default value.
|
SystemPropertySupplier<T> |
SystemPropertySupplier.formatSetMessage(@NotNull java.util.function.BiFunction<java.lang.String,T,java.lang.String> setMessageFormatter) |
Specify a formatter for the "success" log message to be used when the
returned property value differs from the default.
|
SystemPropertySupplier<T> |
SystemPropertySupplier.loggingTo(@NotNull Logger log) |
Specify the Logger to log to (defaults to this classes logger otherwise).
|
SystemPropertySupplier<T> |
SystemPropertySupplier.logSuccessAs(Level successLogLevel) |
Specify Level to use for "success" message.
|
protected SystemPropertySupplier<T> |
SystemPropertySupplier.usingSystemPropertyReader(@NotNull java.util.function.Function<java.lang.String,java.lang.String> sysPropReader) |
For unit testing: specify a function to read system properties
(overriding default of System.getProperty(String ).
|
SystemPropertySupplier<T> |
SystemPropertySupplier.validateWith(@NotNull java.util.function.Predicate<T> validator) |
Specify a validation expression.
|