title: How to exclude bean from loading?
body: <p>I have a problem integrating external library with Spring. It contains a class annotated with <code>@Configuration</code> and it has a method annotated with <code>@Bean</code>. I don't want it to be instantiated (it's not needed and introduces dependency on a <strong>Spring Boot</strong>, which I don't use.</p>
  
  <p>Unfortunately this <code>@Configuration</code>-annotated class is used elsewhere in the library (required by the class type, not interface type, so I need to instantiate exactly this class).</p>
  
  <p>I exluded it's package from auto-scanning, I'm not importing it directly. Just constructing it by hand and registering in own configuration as a bean.</p>
  
  <p>So, to make story short - I need to register a bean, but exclude it from annotation scnanning (to not process it's <code>@Bean</code>-annotated methods). Any way for doing this?</p>