Antanas A.
04/26/2019, 11:55 AMribesg
04/26/2019, 11:59 AMAntanas A.
04/26/2019, 12:05 PMribesg
04/26/2019, 12:07 PMstreetsofboston
04/26/2019, 12:08 PMspand
04/26/2019, 12:08 PMribesg
04/26/2019, 12:09 PMCzar
04/26/2019, 12:09 PMspand
04/26/2019, 12:13 PMtseisel
04/26/2019, 12:17 PMAntanas A.
04/26/2019, 12:21 PMspand
04/26/2019, 12:23 PM@Inject
annotation (if that is what Koin etc. uses)Antanas A.
04/26/2019, 12:25 PMtddmonkey
04/26/2019, 12:30 PMAntanas A.
04/26/2019, 12:34 PMtddmonkey
04/26/2019, 12:35 PMAntanas A.
04/26/2019, 12:36 PMStephan Schroeder
04/26/2019, 1:42 PMsitepodmatt
04/26/2019, 1:45 PMAntanas A.
04/26/2019, 1:59 PMCzar
04/26/2019, 2:08 PMIFoo -> Foo naming convention🤬
Antanas A.
04/26/2019, 2:09 PMprivate val container = Container().apply {
registrations.scan
.fromClasspathWhere({ true }) {
it.bindClassesAndInterfaces(
condition = null,
lifecycle = Lifecycle.Singleton
)
}
}
Czar
04/26/2019, 2:11 PMone
two
three
Antanas A.
04/26/2019, 2:11 PMJoe
04/26/2019, 2:34 PMinjector.Instance<SomeService>()
instead of having to do a ::class.java
call.Antanas A.
04/26/2019, 2:53 PM@Inject @Named("SMSComms")
Joe
04/26/2019, 5:07 PM@Inject
primary constructors and use modules to specify anything more that needs it, with a few exceptions where we need @Named
to qualify things