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.hideValue() |
Used to hide property value in log messages (for instance, for passwords)
|
SystemPropertySupplier<T> |
SystemPropertySupplier.loggingTo(@NotNull Logger log) |
Specify the Logger to log to (defaults to this classes logger otherwise).
|
SystemPropertySupplier<T> |
SystemPropertySupplier.logSuccessAs(String successLogLevel) |
Specify Level to use for "success" message (defaults to "INFO")
|
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.
|