Skip to content
Scala extensions for Google Guice
Scala Shell
Find file
Failed to load latest commit information.
project Add licence notice to all source files May 30, 2011
src
.gitignore
LICENSE Add Apache 2.0 licence text and notice file May 30, 2011
NOTICE
README.md Add note referring to codingwell's fork Oct 18, 2012
sbt
sbt-launch.jar Upgrade sbt to 0.7.7 May 30, 2011
sbt.bat

README.md

Scala extensions for Google Guice

Unfortunately, I don't have time to properly maintain this project. Please consider using codingwell's fork instead.

Features:

  • Manifest[T] -> TypeLiteral[T] conversion (typeLiteral[T])
  • Binding DSL extensions using type parameters to specify types
  • ScalaModule trait including the above binding DSL extensions
  class MyModule extends AbstractModule with ScalaModule {
    def configure {
      bind[Service].to[ServiceImpl].in[Singleton]
      bind[CreditCardPaymentService]
      bind[Bar[Foo]].to[FooBarImpl]
      bind[PaymentService].to[CreditCardPaymentService]
    }
  }

Future:

  • TypeLiteral[T] -> Manifest[T] conversion
  • Have Manifest[T] injected anywhere Guice could inject TypeLiteral[T] (see Jesse's post for context)
  • Extractor objects for pattern-matching against the binding AST

If technically possible:

  • Inject Option[T] for optional dependencies
  • Injection that takes variance into account
Something went wrong with that request. Please try again.