salomonbrys10/14/2015, 4:18 PM
. However kodein does not do reflection (as Mark pointed out, it's more of a dependency lookup library), so to retrieve the dependency, its a parameter :
bind<Type>(Annotated()) with whatever
. Therefore, Annotated() should not be an annotation but a data class (to support hashcode & equals). 2) Factory bindings are typically for assisted injection.
val dep = kodein.instance(Annotated())