I am trying to create a Multibinder<A<? extends B>>. I have tried using Multibinder.newSetBinder(binder(), A.class). The second parameter is a Class<T> so doing this in my guice module gives me a Type mismatch error.
Multibinder<A<? extends B>> multibinder = Multibinder.newSetBinder(binder(), A.class)
Is it possible to bind these kind of generic collections? Maybe I could use a different kind of Multibinder? Does anyone have any ideas?
there is a version that takes a
TypeLiteral