Class CompositeService
java.lang.Object
com.sap.cds.services.impl.composite.CompositeService
- All Implemented Interfaces:
Service
- Direct Known Subclasses:
MessagingCompositeService
The composite service is responsible for dispatching events to configured services. The configuration
is also used for delegating the handler registration to the configured services.
Example:
name: my_composite
routes:
- service: my_service
events:
- 'CREATE'
- 'READ'
As shown in the configuration example above, the events 'CREATE' and 'READ' are dispatched to
'my_service' when they are emitted on 'my_composite'. Also if a handler registration
for these events is created on 'my_composite' the registration is delegated to 'my_service'.-
Constructor Summary
ConstructorsConstructorDescriptionCompositeService
(CdsProperties.Composite.CompositeServiceConfig config, CdsRuntime runtime) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
emit
(EventContext context) protected Service
getDestinationService
(String event) getName()
void
-
Constructor Details
-
CompositeService
-
-
Method Details