These are chat archives for etorreborre/specs2

Jun 2018
Vamsi Ampolu
Jun 17 2018 02:32

@etorreborre thanks for answering the question but I have a small problem, my code needs to run in AWS lambda environment, which means I can't create that instance of MyHandler and run handler as part of a Main extends App object.

How can I solve this given that context, I have also left a similar comment on the stackoverflow question, sorry for not giving you enough context on this before.

Eric Torreborre
Jun 17 2018 17:17
@vamsiampolu I think that your second solution with def self might indeed be the only way out in your case. I also don’t know of a DI library able to do this kind of injection