public class SapVcapServicesServiceBindingAccessor extends Object implements ServiceBindingAccessor
ServiceBindingAccessor that is able to load ServiceBindings from SAP's VCAP_SERVICES
structure. Please refer to
the official
documentation for more details about the VCAP_SERVICES structure.| Modifier and Type | Field and Description |
|---|---|
static Function<String,String> |
DEFAULT_ENVIRONMENT_VARIABLE_READER
The default
Function to read environment variables. |
| Constructor and Description |
|---|
SapVcapServicesServiceBindingAccessor()
Initializes a new
SapVcapServicesServiceBindingAccessor instance that uses the
DEFAULT_ENVIRONMENT_VARIABLE_READER. |
SapVcapServicesServiceBindingAccessor(Function<String,String> environmentVariableReader)
Initializes a new
SapVcapServicesServiceBindingAccessor instance that uses the given
environmentVariableReader. |
| Modifier and Type | Method and Description |
|---|---|
List<ServiceBinding> |
getServiceBindings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstancesViaServiceLoaderpublic SapVcapServicesServiceBindingAccessor()
SapVcapServicesServiceBindingAccessor instance that uses the
DEFAULT_ENVIRONMENT_VARIABLE_READER.public SapVcapServicesServiceBindingAccessor(@Nonnull Function<String,String> environmentVariableReader)
SapVcapServicesServiceBindingAccessor instance that uses the given
environmentVariableReader.environmentVariableReader - The Function that should be used to read environment variables.@Nonnull public List<ServiceBinding> getServiceBindings() throws ServiceBindingAccessException
getServiceBindings in interface ServiceBindingAccessorServiceBindingAccessExceptionCopyright © 2024. All rights reserved.