Closed lestephane closed 3 years ago
(the project description says that generics are fully supported, but I can't find much documentation about how to use them, so this issue comes from exploratory testing)
Guice can do this:
Cursor<User> instance = injector.getInstance(Key.get(new TypeLiteral<Cursor<User>>() {}))
I cannot do this with InjectMaid, or at least I didn't manage. I'm having to do a cast
(the project description says that generics are fully supported, but I can't find much documentation about how to use them, so this issue comes from exploratory testing)
Guice can do this:
I cannot do this with InjectMaid, or at least I didn't manage. I'm having to do a cast