mercredi 7 février 2018

How to retrieve implemented class of interface having generic parameter in Java?

Sample Code Structure

class Param1{}

class Param2{}

interface Generic<T>{}

class Impl1 implements Generic<Param1>{}

class Imp2 implements Generic<Param2>{}    

I want to retrieve implemented class using Generic Param and Interface (Param1.class,Generic.class - > Impl1.class)
Any libraries are appreciated ?





Aucun commentaire:

Enregistrer un commentaire