You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using annotations and I need Koin in managed class to instantiate Factory classes upon call. I can't inject them as List, because they can't be reused.
@Singleton
class DefaultSchemaService(private val repository: MetadataRepository) :
SchemaService,
KoinComponent {
works, but emits override warning. Because of KoinComponent
getKoin() is available statically.
Register koin as single{} in modules on container start.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'm using annotations and I need Koin in managed class to instantiate Factory classes upon call. I can't inject them as List, because they can't be reused.
works, but emits override warning. Because of KoinComponent
Maybe there is more elegant solution?
All reactions