Skip to content

Instantly share code, notes, and snippets.

@andrewconner
Created February 11, 2013 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewconner/4757684 to your computer and use it in GitHub Desktop.
Save andrewconner/4757684 to your computer and use it in GitHub Desktop.
package common.modules
import com.tzavellas.sse.guice.ScalaModule
import common.translation._
class ProdModule extends ScalaModule {
def configure() {
bind[Translator].to[FrenchTranslatorImpl]
}
}
class DevModule extends ScalaModule {
def configure() {
bind[Translator].to[FakeTranslator]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment