We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have something that looks like
interface LifecycleListener { fun load() {} } interface EntityService { fun getEntities(): List<Entity> } class DefaultEntityService : EntityService, LifecycleListener { private var entities: List<Entity>? = null override fun load() { entities = loadEntities() // not shown } override fun getEntities() { return entities } }
to bind this properly, I need to do
interface EntityComponent { @get:Provides val entityService: EntityService = DefaultEntityService() @get:IntoSet val DefaultEntityService.bind: LifecycleListener = this }
which gets even worse when you add scopes.
I would like to be able to do
interface EntityComponent { @get:Provides @get:IntoSet(LifecycleListener::class) val entityService: EntityService = DefaultEntityService() }
The text was updated successfully, but these errors were encountered:
You could support multiple IntoSet annotations on the same binding, too.
IntoSet
Sorry, something went wrong.
No branches or pull requests
I have something that looks like
to bind this properly, I need to do
which gets even worse when you add scopes.
I would like to be able to do
The text was updated successfully, but these errors were encountered: