Skip to content

Instantly share code, notes, and snippets.

@tzachz
Created July 25, 2022 17:24
Show Gist options
  • Save tzachz/9ae20331a82d5d0e4f5ee75b18336489 to your computer and use it in GitHub Desktop.
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
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