Class MegacliteServiceBindingAccessor

java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.MegacliteServiceBindingAccessor
All Implemented Interfaces:
com.sap.cloud.environment.servicebinding.api.ServiceBindingAccessor

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 Details

  • Constructor Details

    • MegacliteServiceBindingAccessor

      public MegacliteServiceBindingAccessor()
  • Method Details

    • registerServiceBinding

      public static void registerServiceBinding(@Nonnull MegacliteServiceBinding serviceBinding)
      Adds the provided serviceBinding to the statically stored list of all tracked MegacliteServiceBinding instances. The added serviceBinding will be included in the response of getServiceBindings() of any instance of the MegacliteServiceBindingAccessor class.
      Parameters:
      serviceBinding - The MegacliteServiceBinding 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 interface com.sap.cloud.environment.servicebinding.api.ServiceBindingAccessor
      Throws:
      com.sap.cloud.environment.servicebinding.api.exception.ServiceBindingAccessException