public interface ProfileValueSource
Strategy interface for retrieving profile values for a given testing environment.
Concrete implementations must provide a public no-args
constructor.
Spring provides the following out-of-the-box implementations:
ProfileValueSourceConfiguration,
IfProfileValue,
ProfileValueUtils| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String key)
Get the profile value indicated by the specified key.
|
@Nullable java.lang.String get(java.lang.String key)
key - the name of the profile valuenull
if there is no profile value with that key