whats the best practice for non-spring oriented si...
# getting-started
m
whats the best practice for non-spring oriented singleton retrieval if you know interface? ``````
something like this?:
Copy code
interface Repository{
    ...fields and stuff...
    fun impl() = RepositoryImpl
}

internal object RepositoryImpl : Repository {
   ...implementation...
}