title: Annotation Scanner in packages
body: <p>I am looking for an easy way to look through a java package for my own annotation. </p>
  
  <p>What I am trying to do is mark some classes with my own annotation. Every minute a scanner should scan some packages for this annotation.</p>
  
  <p>With scanotation jar I tried that</p>
  
  <pre><code>URL url = ClasspathUrlFinder.findClassBase(FileWatcher.class);
  </code></pre>
  
  <p>and with AnnotationDB I could check if this class (FileWatcher.class) has the annotation. Now I need a list of classes in order to scan them all.</p>
  
  <p>I read some articles and most people said it is not possible because of the classloader could load external jar files as well.</p>
  
  <p>The other option I have is to copy all EJB Projects containing those annotations inside a subdirectory and scan all those jar files. I think that would might work, but is there no better way?</p>
  
  <p>Many greetings,
  Hauke</p>