Join Slack
Powered by
<@U9KBZQSGN> commented on <@U9KBZQSGN>’s file <htt...
# android-architecture
u
user
04/04/2018, 3:29 PM
@ubu
commented on
@ubu
’s file
https://kotlinlang.slack.com/files/U9KBZQSGN/FA15XC1K7/provider.kt
: Hello everyone. Have been reading this article (
https://blog.kotlin-academy.com/effective-java-in-kotlin-item-1-consider-static-factory-methods-instead-of-constructors-8d0d7b5814b2
) where Marcin Moskala uses Provider as “a lighter alternative to DI”. I wonder how to kill companion object instance provided by
Provider
. Reset it to null? Any help would be appreciated.
Provider.kt
Open in Slack
Previous
Next