Data migration of old formats to current format can
be implemented in a concrete subclass or provided through the
factories in JsonMigrations and configured to be used by the
PlayJsonSerializer
for a changed class.
Describes how to serialize and deserialize a type using play-json
Create a concrete subclass of this and initialise the actor system either by providing it in your application cake or manually by creating a serialization setup and passing it to the ActorSystem constructor.
This can be used to depend on an optionally provided serializer registry.
This can be used to depend on an optionally provided serializer registry.
The purpose of this is to allow Lagom to configure its actor system to use a provided serializer registry if one is provided, but not require one to be provided. It is used in combination with RequiresJsonSerializerRegistry, which for example the persistence components traits can extend to force a user to provide one, and provides that mandatory serializer as the optional serializer provided by this trait.
This can be used to mark that using a particular set of components requires a JSON serializer registry to be defined.
This can be used to mark that using a particular set of components requires a JSON serializer registry to be defined.
The jsonSerializerFactory is intentionally abstract to force end users to provide one.
An empty serializer registry.
Conveneince factories to create JsonMigrations.
Data migration of old formats to current format can be implemented in a concrete subclass or provided through the factories in JsonMigrations and configured to be used by the
PlayJsonSerializer
for a changed class.It is used when deserializing data of older version than the currentVersion. You implement the transformation of the JSON structure in the transform method. If you have changed the class name you should override transformClassName and return current class name.