Last active
May 2, 2016 17:40
-
-
Save leogrim/5ff7bacef17f8f65bc1cd5823354e23b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ServiceAModule extends ScalaModule { | |
def configure() { | |
bind[ClassC].to[CommonImplementation] | |
bind[ClassA].to[ImplementationA] | |
} | |
def classDProviderForServiceA: ClassD = serviceAInstanceOfClassD | |
} | |
class ServiceBModule extends ScalaModule { | |
def configure() { | |
bind[ClassC].to[CommonImplementation] | |
bind[ClassB].to[ImplementationB] | |
} | |
def classDProviderForServiceB: ClassD = serviceBInstanceOfClassD | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment