I have my generic interface:
public interface myGenericInterface<T> {...}
And I have a class retrieved this way:
Class<?> myClass = Class.forName("myClassName");
I would like to be able to instantiate something like this:
myGenericInterface<myClass> mySubType ...
It’s not working of course. Is there a way of doing something like that?
UPDATE:
Well, since generics is relevant to compile-time I guess it won’t work with reflection style code. So no good can come out of that.
Generics are a compile-time feature that helps to avoid programming errors, so what you are trying to do makes no sense, sorry.