Re: [akka-user] Is there a standard way of referencing external objects inside of custom serializers?

2017-02-02 Thread Patrik Nordwall
Hi Andrey, For this purpose we have recently added ActorSystemSetup, which makes it possible to define serializers programmatically before the actor system is created. See here for how to use it with serializers:

Re: [akka-user] Is there a standard way of referencing external objects inside of custom serializers?

2017-02-01 Thread Alan Burlison
There's another wrinkle with the current Serialization API. It assumes that serialization is always from/to binary. If you are using pure-JSON and storing it in (say) a flat file you most likely want to serialize the payload, then "wrap" that inside an outer JSON object containing the

[akka-user] Is there a standard way of referencing external objects inside of custom serializers?

2017-01-31 Thread Andrey
Consider a serializer that delegates to some JSON library. The delegate is instantiated outside of the serializer, before the ActorSystem is even created (when, for example, relying on a dependency injection framework). Is it possible to "share" this delegate with the serializer(s) that depend