mardi 27 octobre 2020

Load class with generic type information from name

I am looking for a way to load a class from name with generic type information. For example the input List(String). I am looking similar of what you get with Class.forName that works with this format.

Edit: I understand the generics information is erased at runtime, but I am not trying to create an instance from the class. I am building a processor with the output of: https://github.com/mbknor/mbknor-jackson-jsonSchema.





Aucun commentaire:

Enregistrer un commentaire