I'd like to search a class that matches a given pattern in all the classes loaded at the current moment.
For example I'd like to do something like:
List<Class<?>> classess = getClassesFromPattern("*.Entity*");
And as a result I'd get:
com.package.EntityA
com.package.EntityB
com.package.EntityC
How would I implement that?