v2.4.0
What’s Changed
- Scala 3 support by @mbore
- see the readme for limitations
- drop Scala 2.11
wireRec
by @mbore, inspired by @yakivy https://github.com/yakivy/jam. For example:
class DatabaseAccess()
class SecurityFilter()
class UserFinder(databaseAccess: DatabaseAccess, securityFilter: SecurityFilter)
class UserStatusReader(userFinder: UserFinder)
trait UserModule {
import com.softwaremill.macwire._
lazy val theUserStatusReader = wireRec[UserStatusReader]
}
generates:
trait UserModule {
lazy val theUserStatusReader = new UserStatusReader(
new UserFinder(new DatabaseAccess(), new SecurityFilter()))
}