Voiteh / Depin

Dependency injection library for Ceylon
Apache License 2.0
0 stars 0 forks source link

Handle type parameters of function or class #14

Open Voiteh opened 5 years ago

Voiteh commented 5 years ago

It could be implemented with new typeParameter annotation which would indicate to Depin that given dependency is a type parameter for other dependency or injection. It would be only possible to annotate Type returning factory functions or values with that annotation. It is not possible in compile time to determine if given dependency type parameter matches required but it is possible in runtime via TypeParameter.satisfiedTypes and TypeParameter.caseTypes