Interface EnvironmentVariableUsagePropertyProvider.EnvironmentVariableSupplier
- Enclosing class:
EnvironmentVariableUsagePropertyProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface EnvironmentVariableUsagePropertyProvider.EnvironmentVariableSupplier
A functional interface to supply environment variables. This allows for custom implementations to provide
environment variable values, which can be useful for testing or when the default
System.getenv() is not
suitable.-
Method Summary
-
Method Details
-
get
Retrieves the value of the specified environment variable.- Parameters:
key- The name of the environment variable to retrieve.- Returns:
- The value of the environment variable, or
nullif it is not set.
-