Hello,
Is there any way to use dependency injection for the instantiation of cluster singleton, sharded actor or in general any type of actor whose Props
need to stay serializable?
AkkaGuiceSupport#bindActor
works great as long as the spawned actor will remain local, but it won’t work for actors that might move across nodes. Right now I’m using Play.application().injector()
from onStart()
to locate dependencies, but I’m trying to move away from deprecated methods.