Created
January 27, 2022 02:24
-
-
Save taketora26/76c7b1ff05c25f8374624c49e3b74d30 to your computer and use it in GitHub Desktop.
Modules.scala
This file contains hidden or 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
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