title: How to scan a classpath for resources with Jersey outside of an Application?
body: <p>In the case of (server-side) <code>Application</code> configuration, we can easily scan packages for JAX-RS resource classes with</p>
  
  <pre><code> ResourceConfig rCfg = new ResourceConfig();
   rCfg.packages("com.my.package", ...);    
  </code></pre>
  
  <p>and then initializing the application using the <code>ResourceConfig</code> as the <code>Application</code> object.</p>
  
  <p>Using the client-side though, it is not clear how to perform package scanning.</p>
  
  <p>We can do </p>
  
  <pre><code>  Resource.from(SomeResourceClass.class);
  </code></pre>
  
  <p>to get resources if we know the class name.   In my case we don't know the class names, and we'd like to get the classes based on their <code>@Path</code>.   If we knew all of the class names up front, we could use repeated calls to <code>Resource.from()</code> to get all the resources, then index them by path, then lookup the paths as necessary.   </p>
  
  <p>But we don't know all the class names up front.   Is there some way to get all of the <code>Resource</code> in a particular package, or even better scan the entire classpath for them - all without initializing a (server-side) <code>Application</code>?</p>