Join Slack
Powered by
<@U9KBZQSGN> shared a file: <Provider> and comment...
# announcements
u
ubu
04/04/2018, 3:29 PM
@ubu
shared a file:
Provider
and commented: 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
2
Views
Open in Slack
Previous
Next