title: Is it possible to inject an object with scala-guice?
body: <p>I would like to inject the <code>scala.io.Source</code> but I failed to find a working solution. This is what I have so far:</p>
  
  <pre><code>class Foo @Inject()(var source:Source) {
    // ...
  }
  </code></pre>
  
  <p>And the binding:</p>
  
  <pre><code>class DependencyInjection extends AbstractModule with ScalaModule {
    def configure:Unit = {
       bind[Source.type].to[Source]
       // bind[Source] didn't work
    }
  }
  </code></pre>
  
  <p>Maybe I can wrap the <code>scala.io.Source</code> calls into a local <code>class</code> but it doesn't sound right. Is there a way to inject objects with scala-guice?</p>