mardi 3 mars 2020

Get every classes that implements an interface in a package in java dynamically

I have few classes in a package, that all implement the same interface. I'd like to get all these classes dynamically, to execute a method. Is that possible in java? If not, how can i do something similar. Should i use reflection?

Thanks





Aucun commentaire:

Enregistrer un commentaire