Package com.sap.cds.services.impl.cds
Class ApplicationServiceConfiguration
java.lang.Object
com.sap.cds.services.impl.cds.ApplicationServiceConfiguration
- All Implemented Interfaces:
CdsRuntimeConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationServiceConfigs(CdsRuntimeConfigurer configurer, Predicate<? super com.sap.cds.reflect.CdsService> servicePredicate) Returns a stream of application service configurations.voideventHandlers(CdsRuntimeConfigurer configurer) intorder()voidservices(CdsRuntimeConfigurer configurer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cds.services.runtime.CdsRuntimeConfiguration
environment, providers
-
Constructor Details
-
ApplicationServiceConfiguration
public ApplicationServiceConfiguration()
-
-
Method Details
-
order
public int order()- Specified by:
orderin interfaceCdsRuntimeConfiguration
-
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 theservicePredicate, 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 aRemoteServicefor 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- theCdsRuntimeConfigurerservicePredicate- the predicate to filter relevant CDS model services- Returns:
- the configurations of application services, which should be created
-
services
- Specified by:
servicesin interfaceCdsRuntimeConfiguration
-
eventHandlers
- Specified by:
eventHandlersin interfaceCdsRuntimeConfiguration
-