posted 7 years ago
First of all, your annotation needs a retention policy "runtime". Then, you can scan the classpath for all classes containing certain annotations. There are libraries out there that do it, just google for classpath scanning and annotations.