I have few classes that I need to annotate with a name so I defined my annotation as
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @i
Maybe you can use http://scannotation.sourceforge.net/ framework to achive that.
Hope it helps.