I am trying to implement a custom serializer for my classes that implement my event interface (that extends CompressedJsonable
and com.lightbend.lagom.javadsl.persistence.AggregateEvent
).
That serializer needs to access some runtime state.
Is there a way to do this in Lagom?