macwire
macwire copied to clipboard
Lightweight and Nonintrusive Scala Dependency Injection Library
Something related to interceptors & `Unsafe`
Implement some sort of deferred wiring which can express some sort of dependency delayed in time. This would allow more precise loading of components when they're ready to be loaded...
e.g. ( `tests/src/test/resources/test-cases/functionApplication.scala2.success`) ```Scala case class A() case class B(a: A) case class C(a: A, b: B) lazy val ab: Option[(A,B)] = Some(A(),B(A())) def buildDeconstructingCase: Option[C] = { ab.map {...
Hello, I'm trying to upgrade from play 2.4.x to 2.5.x, i saw that starting from 2.5.x `play.api.Play.current` need to be used with DI now, i tried to wire `play.Configuration` but...
``` trait ObjectMixIn { class Klass() } object ConcreteObject extends ObjectMixIn class App { lazy val klass: ConcreteObject.Klass = wire[ConcreteObject.Klass] } ``` Fails compilation with ``` Error:(10, 46) type mismatch;...
Bug 142
This proposal is somewhat related to original issue #142. It is described by following test-case: ```scala class A() class B(val oa: Option[A]) object TestSomeOption { val a = new A()...
In below code I am trying to construct `Target` object. `Target` class has 3 constructors but only one is preffered (the one annotated). This results in compilation error because `wire[Target]`...