@Contract
interface AppContract
class AppContractConfiguration : ContractConfiguration<AppContract>()
interface SomeValidInterface
class Outer {
@ProvidedAs(SomeValidInterface::class)
@ProvidedBy(AppContractConfiguration::class)
inner class Dependency @Inject constructor() : SomeValidInterface
}
Example code :