title: Play 2.4 Scala, How to inject a class with a parameter?
body: <p>Im trying to refactor my app to use play 2.4 dependency injection instead of cake pattern. </p>
  
  <p>How do you inject a class with parameter, for example</p>
  
  <pre><code>class A(valX: Int) { } // How do you Inject val X ?
  
  class B @Inject() (a : A)
  </code></pre>