@Beta public class ServiceBindingMerger extends Object implements ServiceBindingLoader
ServiceBindingLoader
interface that is capable of merging the result of an
arbitrary amount of given ServiceBindingLoader
instances based on a provided ServiceBindingMerger.MergingStrategy
.Modifier and Type | Class and Description |
---|---|
static interface |
ServiceBindingMerger.MergingStrategy
Represents an algorithm to merge multiple service bindings (as returned by
ServiceBindingLoader.load() )
into a single Map . |
static class |
ServiceBindingMerger.ServiceBindingMergerBuilder |
Modifier and Type | Field and Description |
---|---|
static ServiceBindingMerger.MergingStrategy |
DEFAULT_MERGING_STRATEGY
The default
ServiceBindingMerger.MergingStrategy . |
Modifier and Type | Method and Description |
---|---|
static ServiceBindingMerger.ServiceBindingMergerBuilder |
builder() |
Map<String,com.google.gson.JsonArray> |
load()
Loads all existing service bindings for the current application.
|
@Nonnull public static final ServiceBindingMerger.MergingStrategy DEFAULT_MERGING_STRATEGY
ServiceBindingMerger.MergingStrategy
.@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 ServiceBindingMerger.ServiceBindingMergerBuilder builder()
Copyright © 2021 SAP SE. All rights reserved.