I am currently looping through the classes in a package like this :
for (var entityClass : new Reflections("com.something.someotherthing").getSubTypesOf(Entity.class))
{
//Do stuff
}
I added an @Order
annotation to each class and I would like this loop to traverse the package in the order of those annotations. How can that be done?
Aucun commentaire:
Enregistrer un commentaire