Created
July 25, 2022 17:24
-
-
Save tzachz/9ae20331a82d5d0e4f5ee75b18336489 to your computer and use it in GitHub Desktop.
Beating Conway’s Law: Achieving Distributed Ownership with Guice, RabbitMQ and Kubernetes - code snippet 2
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 GoogleModule extends AbstractModule { | |
override def configure(): Unit = { | |
// Register your implementation of Publisher by adding it to the set: | |
Multibinder.newSetBinder(binder, classOf[Publisher]) | |
.addBinding() | |
.to(classOf[GooglePublisher]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment