Package de.vinado.boot.secrets
Interface PropertyIndexSupplier
- All Known Implementing Classes:
CompositePropertyIndexSupplier
,ConfigDataPropertyIndexSupplier
,EnvironmentPropertyIndexSupplier
,FilenamePropertyIndexSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface for specifying
Supplier
's type.- Author:
- Vincent Nadoll
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyIndexSupplier
Creates a instance of thisPropertyIndexSupplier
by supplying just the given map.default UnaryOperator<String>
substitute
(PropertyResolver resolver) Substitutes the entry's value.substituteValue
(PropertyResolver resolver) Substitutes the entry's value.default PropertyIndexSupplier
substituteValues
(PropertyResolver resolver) Creates an index supplier which substitutes every value contained by the underlying map.
-
Method Details
-
substituteValues
Creates an index supplier which substitutes every value contained by the underlying map.- Parameters:
resolver
- the component that resolves system property- Returns:
- new instance of a substituting index supplier
-
substituteValue
Substitutes the entry's value.- Parameters:
resolver
- the component that resolves system property- Returns:
- a function which substitutes the entry's value
-
substitute
Substitutes the entry's value.- Parameters:
resolver
- the component that resolves system property- Returns:
- a function which substitutes its argument
-
from
Creates a instance of thisPropertyIndexSupplier
by supplying just the given map.- Parameters:
properties
- must not be null- Returns:
- new instance of
PropertyIndexSupplier
-