@Beta public class EnvironmentVariableServiceBindingLoader extends Object implements ServiceBindingLoader
ServiceBindingLoader
interface that is capable of transforming environment
variables into service bindings.Modifier and Type | Class and Description |
---|---|
static class |
EnvironmentVariableServiceBindingLoader.EnvironmentVariableServiceBindingLoaderBuilder |
static interface |
EnvironmentVariableServiceBindingLoader.ParsingStrategy
Represents an algorithm to transform environment variables that can be obtained from the given environment
variable reader into service bindings.
|
Modifier and Type | Field and Description |
---|---|
static Supplier<Function<String,String>> |
DEFAULT_ENVIRONMENT_VARIABLE_READER_SUPPLIER
The default supplier for the environment variable reader.
|
static EnvironmentVariableServiceBindingLoader.ParsingStrategy |
DEFAULT_PARSING_STRATEGY
The default
EnvironmentVariableServiceBindingLoader.ParsingStrategy instance. |
Modifier and Type | Method and Description |
---|---|
static EnvironmentVariableServiceBindingLoader.EnvironmentVariableServiceBindingLoaderBuilder |
builder() |
static EnvironmentVariableServiceBindingLoader |
getDefaultInstance() |
Map<String,com.google.gson.JsonArray> |
load()
Loads all existing service bindings for the current application.
|
@Nonnull public static final EnvironmentVariableServiceBindingLoader.ParsingStrategy DEFAULT_PARSING_STRATEGY
EnvironmentVariableServiceBindingLoader.ParsingStrategy
instance.@Nonnull public Map<String,com.google.gson.JsonArray> load()
ServiceBindingLoader
Exception
.load
in interface ServiceBindingLoader
Map
of service bindings, where keys are the name of the service type (e.g. "xsuaa") and each
entry (JsonArray
) contains a list of individual service bindings that belong to the specific
service type.@Nonnull public static EnvironmentVariableServiceBindingLoader.EnvironmentVariableServiceBindingLoaderBuilder builder()
@Nonnull public static EnvironmentVariableServiceBindingLoader getDefaultInstance()
Copyright © 2021 SAP SE. All rights reserved.