Class ApplicationServiceConfiguration

java.lang.Object
com.sap.cds.services.impl.cds.ApplicationServiceConfiguration
All Implemented Interfaces:
CdsRuntimeConfiguration

public class ApplicationServiceConfiguration extends Object implements CdsRuntimeConfiguration
  • Constructor Details

    • ApplicationServiceConfiguration

      public ApplicationServiceConfiguration()
  • Method Details

    • order

      public int order()
      Specified by:
      order in interface CdsRuntimeConfiguration
    • applicationServiceConfigs

      public static Stream<CdsProperties.Application.ApplicationServiceConfig> applicationServiceConfigs(CdsRuntimeConfigurer configurer, Predicate<? super com.sap.cds.reflect.CdsService> servicePredicate)
      Returns a stream of application service configurations. By default application service configs for each CDS model service are returned. The CDS model services which are looked at can be limited by the servicePredicate, If the configuration for an application service is explicitly defined, it will be returned by this method. If for a given CDS model service no explicit application service configuration can be obtained, a default service is created. This default service is not created, if a RemoteService for this CDS model service exists already. Overall only those configurations are returned, for which no other service already exists with the same name.
      Parameters:
      configurer - the CdsRuntimeConfigurer
      servicePredicate - the predicate to filter relevant CDS model services
      Returns:
      the configurations of application services, which should be created
    • services

      public void services(CdsRuntimeConfigurer configurer)
      Specified by:
      services in interface CdsRuntimeConfiguration
    • eventHandlers

      public void eventHandlers(CdsRuntimeConfigurer configurer)
      Specified by:
      eventHandlers in interface CdsRuntimeConfiguration