I asked about this on spray-user, but thought I'd try here since this list rocks and it relates to Akka and an Activator template.
I'm wondering how one would make this: https://github.com/NET-A-PORTER/spray-actor-per-request/blob/master/src/main/scala/com/netaporter/routing/PerRequest.scala more generic. In the sample, the messages are assumed to extend a trait RestMessage, which in the sample is part of the domain package. I don't suppose that's a great burden, and it doesn't have to be part of the domain package, but I wondered if it could be a type parameter or type member. When I tried, I ran into a problem with the definitions in the companion object not having access to the type. Perhaps I'm barking up the wrong tree, but if anyone else has thought about this, or there are other equally good expressions of the per-request actor pattern, please let me know. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.