@Beta public class FileSystemServiceBindingLoader extends Object implements ServiceBindingLoader
ServiceBindingLoader
interface that is capable of transforming file system
structures (e.g. files and directories), starting at a specific root location, into service bindings.Modifier and Type | Class and Description |
---|---|
static class |
FileSystemServiceBindingLoader.FileSystemServiceBindingLoaderBuilder |
static interface |
FileSystemServiceBindingLoader.ParsingStrategy
Represents an algorithm to transform a given root location (directory in the file system) to service bindings.
|
Modifier and Type | Field and Description |
---|---|
static Charset |
DEFAULT_CHARSET
The default file encoding.
|
static FileSystemServiceBindingLoader.ParsingStrategy |
DEFAULT_PARSING_STRATEGY
The default
FileSystemServiceBindingLoader.ParsingStrategy instance. |
static Supplier<Path> |
DEFAULT_ROOT_LOCATION_SUPPLIER
The default
Supplier for the root location. |
Modifier and Type | Method and Description |
---|---|
static FileSystemServiceBindingLoader.FileSystemServiceBindingLoaderBuilder |
builder() |
static FileSystemServiceBindingLoader |
getDefaultInstance() |
Map<String,com.google.gson.JsonArray> |
load()
Loads all existing service bindings for the current application.
|
@Nonnull public static final Supplier<Path> DEFAULT_ROOT_LOCATION_SUPPLIER
Supplier
for the root location.@Nonnull public static final FileSystemServiceBindingLoader.ParsingStrategy DEFAULT_PARSING_STRATEGY
FileSystemServiceBindingLoader.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 FileSystemServiceBindingLoader.FileSystemServiceBindingLoaderBuilder builder()
@Nonnull public static FileSystemServiceBindingLoader getDefaultInstance()
Copyright © 2021 SAP SE. All rights reserved.