title: @Conditional not working on inherited classes?
body: <p>I have a simple class annotated with <code>@Conditional(MyCondition.class)</code></p>
  
  <p>e.g.:</p>
  
  <pre><code>@Conditional(MyCondition.class)
  public class MyBean {
    ...
  }
  </code></pre>
  
  <p>Then I have a configuration bean which extends this bean:</p>
  
  <pre><code>@Configuration
  public class MyConfig extends MyBean {
    ...
  }
  </code></pre>
  
  <p>It seems that the <code>@Conditional</code> is being ignored and the <code>@Configuration</code> is always processed no matter how the condition would resolve (it's not even called)</p>
  
  <p>As soon as I move the <code>@Conditional</code> annotation to the <code>MyConfig</code> everything works as expected.</p>
  
  <p>From the doc:</p>
  
  <blockquote>
    <p>The @Conditional annotation may be used in any of the following ways:</p>
    
    <ul>
    <li>as a type-level annotation on any class directly or indirectly
    annotated with @Component, including @Configuration classes</li>
    <li>as a meta-annotation, for the purpose of composing custom stereotype
    annotations</li>
    <li>as a method-level annotation on any @Bean method</li>
    </ul>
  </blockquote>
  
  <p>I would assume the first point applies here, i.e. <code>MyConfig</code> is indirectly annotated with <code>@Configuration</code>. Or does the <em>indirectly</em> refer to other annotations which are annotated with <code>@Conditional</code>?</p>
  
  <p>Thanks for the insight</p>