mkporwit
10/30/2018, 1:10 AM// Service interface
interface Service{
fun doSomething()
}
// OtherService interface
interface OtherService {
fun doOtherThing()
}
// Service Implementation
class ServiceImp() : Service, OtherService {
fun doSomething() { ... }
fun doOtherThing() { ... }
}
How could I write my module definition such that the single
ServiceImpl
is bound to both Service
and OtherService
?arnaud.giuliani
10/30/2018, 10:35 PMsingle<Service>{ ServiceImpl() } bind OtherService::class
mkporwit
10/31/2018, 3:19 AMarnaud.giuliani
10/31/2018, 8:18 AMbind
operatorarnaud.giuliani
10/31/2018, 8:18 AMmkporwit
10/31/2018, 4:42 PM