I have seen this post about registering generic type.
example on how to register:
bind(new TypeLiteral<Dal<RoutingResponse>>() {}).to((Class<? extends Dal<RoutingResponse>>) ResponseDal.class);
however how can I get an instance of a generic type from the injector?
I have tried:
injector.getInstance(Dal<RoutingResponse>().getClass());
but got compilation error.
How should I write this?