core
1.9.0
jvm
core
/
io.spine.core
/
EnrichableMessageContext
Enrichable
Message
Context
public
interface
EnrichableMessageContext
A common interface for message contexts that hold enrichments.
Members
Functions
find
Link copied to clipboard
public
Optional
<
E
>
find
<
E
extends
Message
>
(
Class
<
E
>
cls
)
get
Link copied to clipboard
public
E
get
<
E
extends
Message
>
(
Class
<
E
>
cls
)
Obtains enrichment of the passed class.
get
Enrichment
Link copied to clipboard
public
abstract
Enrichment
getEnrichment
(
)
Obtains an instance of Enrichment from the context of the message.