public interface EnrichmentService<M extends com.google.protobuf.Message,C extends io.spine.core.EnrichableMessageContext>
Modifier and Type | Method and Description |
---|---|
java.util.Optional<io.spine.core.Enrichment> |
createEnrichment(M message,
C context)
Creates an enrichment for the passed message.
|
java.util.Optional<io.spine.core.Enrichment> createEnrichment(M message, C context)
message
- the enrichable messagecontext
- the context of the enrichable messageOptional
if the passed message cannot be enriched