title: Autowire Spring Bean into interface for default method
body: <p>I need to add a default method to an interface some classes implement, but my IDE complains (<code>bean may not have been initialized</code>).
  Code would be something like this:</p>
  
  <pre><code>public interface IValidator {
  
      MyValidationBean beanToBeAutowired;
      ...
      default Boolean doSomeNewValidations(){
          return beanToBeAutowired.doSomeNewValidations();
      }
  }
  </code></pre>
  
  <p>Is it just that autowiring into interfaces is not allowed or there's something wrong with the code?
  Using <code>@Component</code> on the interface doesn't make any difference.</p>
  
  <p>I'd rather keep this design instead of using an abstract class.</p>