title: How does JSF find beans annotated with @ManagedBean?
body: <p>As far as I know, for using @Annotations (or [Attributes] in C#) you have to have a reference to the class metadata, so that you can ask if the class is annotated (attributed) or not.</p>
  
  <p>My question is how does JSF implementation find all classes annotated with @ManagedBean? Does it scan all of the classes in the class path? Or is there a way to actually "query" the JVM for the annotated classes?</p>
  
  <p>I'm asking this because when I put my annotated backing beans in my web project directly, there's no problem. But the beans that I define in the JAR files (to be reusable across projects) are not registered. Is there something that I have to tell MyFaces to direct it which JAR files to look at?</p>
  
  <p>Also, using annotations introduce many nice patterns of programming. I want to know if I can find all annotated classes somehow...</p>