Yep, Pluggable Annotation Processing API is a build time API, implemented by javac, and also the eclipse compiler.
You would need to use the java.lang.reflect API to do what you want.
The difficulty is that it does not directly give you access to all classes loaded into the JVM.
Use the java.lang.instrument mechanisms to instrument your app, See http://java.sun.com/javase/6/docs/api/java/lang/instrument/Instrumentation.html
and that interface can tell you all the loaded classes. Then just check them all.
have fun.
Thank you for that idea.
Unfortunately this solution needs VM implementation specific classes, when starting on runtime. I hope there will be a standardised way to do this in a future version of the jdk.
Since the classes I need to scan are all in one directory, I search all .class files in that directory and check the corresponding class-objects in my current implementation. It is no neat solution, but it works.