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
-
Method Summary
Modifier and TypeMethodDescriptionapplicationServiceConfigs
(CdsRuntimeConfigurer configurer, Predicate<? super com.sap.cds.reflect.CdsService> servicePredicate) Returns a stream of application service configurations.void
eventHandlers
(CdsRuntimeConfigurer configurer) int
order()
void
services
(CdsRuntimeConfigurer configurer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sap.cds.services.runtime.CdsRuntimeConfiguration
environment, providers
-
Constructor Details
-
ApplicationServiceConfiguration
public ApplicationServiceConfiguration()
-
-
Method Details
-
order
public int order()- Specified by:
order
in 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 aRemoteService
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
- theCdsRuntimeConfigurer
servicePredicate
- the predicate to filter relevant CDS model services- Returns:
- the configurations of application services, which should be created
-
services
- Specified by:
services
in interfaceCdsRuntimeConfiguration
-
eventHandlers
- Specified by:
eventHandlers
in interfaceCdsRuntimeConfiguration
-