title: Apache Spark - Is it possible to use a Dependency Injection Mechanism
body: <p>Is there any possibility using a framework for enabling / using Dependency Injection in a Spark Application?</p>
  
  <p>Is it possible to use <strong>Guice</strong>, for instance?</p>
  
  <p>If so, is there any documentation, or samples of how to do it?</p>
  
  <p>I am using <strong><em>Scala</em></strong> as the implementation language, <strong>Spark 2.2</strong>, and SBT as the build tool.</p>
  
  <p>At the moment, my team adn I are using the Cake Pattern - it has however become quite verbose, and we would prefer Guice. That's something more intuitive, and already know for by other team members.</p>