Let's say i have an interface - `InterfaceA` ```in...
# dagger
r
Let's say i have an interface -
InterfaceA
Copy code
interface InterfaceA
And it's concrete implementation with 
Assisted
 inject
Copy code
class ImplClass @AssistedInject constructor(@Assisted someClass:SomeCLass):InterfaceA {
}
How would you go about using 
Assisted
 Inject in this case, where dagger also requires the binding of concrete class with the interface. Is below the correct way? or i am missing something?
Copy code
class ImplClass @AssistedInject constructor(@Assisted someClass:SomeCLass):InterfaceA {

    @AssistedFactory
    interface DaggerFactory : Factory {
      override fun create(someClass:SomeCLass): ImplClass
    }

    interface Factory {
     fun create(someClass:SomeCLass): InterfaceA
    }              
}
and then, bind it like this
Copy code
@Module
@InstallIn(ActivityComponent::class)
interface BindsSomething {
  @Binds
  fun binds(factory: ImplClass.DaggerFactory): ImplClass.Factory
}