Skip to content

Instantly share code, notes, and snippets.

@taketora26
Created January 27, 2022 02:24
Show Gist options
  • Save taketora26/76c7b1ff05c25f8374624c49e3b74d30 to your computer and use it in GitHub Desktop.
Save taketora26/76c7b1ff05c25f8374624c49e3b74d30 to your computer and use it in GitHub Desktop.
Modules.scala
package sample
trait Modules {
val followerOperation: FollowerOperation
val leaderOperation: LeaderOperation
}
import com.softwaremill.macwire.wire
object Modules extends Modules {
lazy val followerOperation: FollowerOperation = wire[FollowerOperationImpl]
lazy val leaderOperation: LeaderOperation = wire[LeaderOperationImpl]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment