static <U> SystemPropertySupplier<U> |
SystemPropertySupplier.create(@NotNull String propName,
U defaultValue) |
Create it for a given property name and default value.
|
SystemPropertySupplier<T> |
SystemPropertySupplier.formatSetMessage(@NotNull BiFunction<String,T,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 org.slf4j.Logger log) |
Specify the Logger to log to (defaults to this classes logger otherwise).
|
SystemPropertySupplier<T> |
SystemPropertySupplier.logSuccessAs(org.slf4j.event.Level successLogLevel) |
Specify Level to use for "success" message.
|
protected SystemPropertySupplier<T> |
SystemPropertySupplier.usingSystemPropertyReader(@NotNull Function<String,String> sysPropReader) |
For unit testing: specify a function to read system properties
(overriding default of System.getProperty(String).
|
SystemPropertySupplier<T> |
SystemPropertySupplier.validateWith(@NotNull Predicate<T> validator) |
Specify a validation expression.
|