title: Is it possible to limit type hierarchy scanning with Guice?
body: <p>Is there any way, when using Google's Guice injector to limit inheritance depth when scanning a class to find its dependencies ?</p>
  
  <p>I mean, if you define a class A like </p>
  
  <pre><code>class A extends X {
   @Inject
   private B a;
  }
  </code></pre>
  
  <p>And I got class inheritance : A --> X --> Y --> Z</p>
  
  <p>I just want A to be scanned, and X, but not upper classes like Y and Z. I am pretty certain no fields can be injected in neither classes.</p>
  
  <p>My goal is to boost startup phase.</p>
  
  <p>Is that possible ?</p>