I’ve got a problem. When I trying to get the list of packages, by invoking Package.getPackages(), I’m receiving the list of loaded classes by ClassLoader. But some classes did not loaded and their packages are not in the Classloader cache.
How can I get the full list of classes in my project? My target is to find classes and methods with exact annotation.
The Stripes web framework already has a utility class to do just this – ResolverUtil.
Stripes is under the Apache license, so download it and go!