macwire
macwire copied to clipboard
Lightweight and Nonintrusive Scala Dependency Injection Library
(One of the ideas from ScalaDays 2014 - by @matthewfarwell) The `wire[]` method could accept parameters, which would be used to wire an instance of the given type; the parameters...
Sometimes you want to perform some validation before constructing an object. A good place for that is the method factory on the companion object: ``` scala class ParamsNeedValidation private(param1: Param1,...
I've seen this in the README and the DI guide: ``` scala lazy val factory = (arg: Arg) => wire[Stuff] ``` I don't see the point of making this factory...
The documentation is scattered across the README and http://di-in-scala.github.io/. I suggest that everything that is on the documentation website be removed from the README. I guess that one reason why...
I can see 2 things of interest: - `@Qualifier` - currently implemented with `Tagging`. I find the JSR meta-annotation to be less intrusive than the `Tagging` mechanic. That alone has...
It would be nice if function defs were automatically converted to function values. So that with the following class: ``` scala class PlatformsPage(store:PlatformStore,platformBackend:(BackendScope[Props,State] => Backend)) ``` You could wire its...
I get the following error trying to compile Global.scala for play framework [error] C:\Trader\app\Global.scala:7: type mismatch; [error] found : Any [error] required: AnyRef [error] val instanceLookup = InstanceLookup(valsByClass(ProdModule)) [error] ^...
Updates * [org.scala-lang:scala-library](https://github.com/scala/scala) * [org.scala-lang:scala-reflect](https://github.com/scala/scala) from 2.12.16 to 2.12.17. [GitHub Release Notes](https://github.com/scala/scala/releases/tag/v2.12.17) - [Version Diff](https://github.com/scala/scala/compare/v2.12.16...v2.12.17) I'll automatically update this PR to resolve conflicts as long as you don't change it...
Updates [com.softwaremill.common:tagging](https://github.com/softwaremill/scala-common) from 2.3.1 to 2.3.4. I'll automatically update this PR to resolve conflicts as long as you don't change it yourself. If you'd like to skip this version, you...
Updates [org.scalatest:scalatest](https://github.com/scalatest/scalatest) from 3.2.9 to 3.2.14. I'll automatically update this PR to resolve conflicts as long as you don't change it yourself. If you'd like to skip this version, you...