dimanche 17 février 2019

Get list of all classes with root package via reflection

How to get all classes inside a root package? This root package can have other packages inside, so I need to process those classes as well.

public List<Class<?>> getAllClasses(String packageRoot) {
    List<Class<?>> res = new ArrayList<Class<?>>();
    return res;
}





Aucun commentaire:

Enregistrer un commentaire