title: Injecting services into Scala Akka Actors with Google Guice
body: <p>I have a couple of services that I want to inject into akka actors. There are three different types of actors I am working with, and each type will use different services. Currently I just have a module, instantiate an injector inside of the actor, and do the binding inside of each Crow. The issue is that for each other, they receive a new instance of the service. </p>
  
  <p>I did a little bit of reading and found <a href="http://www.typesafe.com/activator/template/activator-akka-scala-guice" rel="nofollow">http://www.typesafe.com/activator/template/activator-akka-scala-guice</a>
  but the documentation for akka recommends we not use <code>IndirectActorProducer</code>. What is the best way for me to inject these services into my actors? The @Inject keyword looks promising but I'm not exactly sure how to use this.</p>
  
  <p>Workflow:</p>
  
  <p>Main creates commander, sends it a command, commander creates the three different types of crows, and sends them messages to execute (it is these crows that require the services).</p>