Uses of Class
org.apache.jackrabbit.oak.commons.properties.SystemPropertySupplier
Packages that use SystemPropertySupplier
-
Uses of SystemPropertySupplier in org.apache.jackrabbit.oak.commons.properties
Methods in org.apache.jackrabbit.oak.commons.properties that return SystemPropertySupplierModifier and TypeMethodDescriptionstatic <U> SystemPropertySupplier<U>Create it for a given property name and default value.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.hideValue()Used to hide property value in log messages (for instance, for passwords)Specify theLoggerto log to (defaults to this classes logger otherwise).SystemPropertySupplier.logSuccessAs(String successLogLevel) SpecifyLevelto 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 ofSystem.getProperty(String).SystemPropertySupplier.validateWith(@NotNull Predicate<T> validator) Specify a validation expression.