Class MegacliteServiceBindingAccessor
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.MegacliteServiceBindingAccessor
- All Implemented Interfaces:
com.sap.cloud.environment.servicebinding.api.ServiceBindingAccessor
@Beta
public class MegacliteServiceBindingAccessor
extends Object
implements com.sap.cloud.environment.servicebinding.api.ServiceBindingAccessor
Implementation of the
ServiceBindingAccessor
interface that keeps track of MegacliteServiceBinding
instances.
Important Hint: All instances of this class will always return the same set of ServiceBinding
instances. These instances must be registered manually (using
registerServiceBinding(MegacliteServiceBinding)
).
- Since:
- 4.17.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MegacliteServiceBinding
TheMegacliteServiceBinding
for the connectivity service. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<com.sap.cloud.environment.servicebinding.api.ServiceBinding>
static void
registerServiceBinding
(MegacliteServiceBinding serviceBinding) Adds the providedserviceBinding
to the statically stored list of all trackedMegacliteServiceBinding
instances.
-
Field Details
-
CONNECTIVITY_BINDING
TheMegacliteServiceBinding
for the connectivity service. In case you want to access on-premise systems via Megaclite, you need to register this service binding manually usingregisterServiceBinding(MegacliteServiceBinding)
.- Since:
- 5.0.0
-
-
Constructor Details
-
MegacliteServiceBindingAccessor
public MegacliteServiceBindingAccessor()
-
-
Method Details
-
registerServiceBinding
Adds the providedserviceBinding
to the statically stored list of all trackedMegacliteServiceBinding
instances. The addedserviceBinding
will be included in the response ofgetServiceBindings()
of any instance of theMegacliteServiceBindingAccessor
class.- Parameters:
serviceBinding
- TheMegacliteServiceBinding
to add.
-
getServiceBindings
@Nonnull public List<com.sap.cloud.environment.servicebinding.api.ServiceBinding> getServiceBindings() throws com.sap.cloud.environment.servicebinding.api.exception.ServiceBindingAccessException- Specified by:
getServiceBindings
in interfacecom.sap.cloud.environment.servicebinding.api.ServiceBindingAccessor
- Throws:
com.sap.cloud.environment.servicebinding.api.exception.ServiceBindingAccessException
-