Interface CdsEnvironment


public interface CdsEnvironment
Provides properties, service bindings and other configuration options.
  • Method Details

    • getCdsProperties

      CdsProperties getCdsProperties()
    • getProperty

      <T> T getProperty(String key, Class<T> asClazz, T defaultValue)
      Returns the value of the property with given key as given type asClazz. Returns the specified default value if key is not existing.
      Type Parameters:
      T - the type of the property value
      Parameters:
      key - The key of the property
      asClazz - The type of the property value
      defaultValue - The default value if the key is not present
      Returns:
      The property value or defaultValue if not defined
    • getServiceBindings

      Stream<com.sap.cloud.environment.servicebinding.api.ServiceBinding> getServiceBindings()
      Returns:
      The available ServiceBindings from the ServiceBindingProvider registered on the CdsRuntime
    • getApplicationInfo

      ApplicationInfo getApplicationInfo()
      Returns:
      The ApplicationInfo from the ApplicationInfoProvider registered on the CdsRuntime