Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Discovering annotations on classpath

800455Feb 25 2010 — edited Feb 26 2010
Hi All,
How do I discover all classes in my application that have a particular annotation on any of their members at runtime.
Eg. How do I find all classes that have @ManagedBean annotation.

I know there are loads of frameworks that allow you put annotations on any classes and they auto discover them at runtime.
How is this discovery done.

Kind regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2010
Added on Feb 25 2010
11 comments
418 views