title: Java Interface Extension and Spring's Autowired
body: <p>I have this interface:</p>
  
  <pre><code>public interface RestService {
      //other methods
  }
  </code></pre>
  
  <p>and this interface which extends <code>RestService</code>:</p>
  
  <pre><code>public interface NewRestService extends RestService{
          void downloadPOD(String baseUrl, String orderNo);   
  }
  </code></pre>
  
  <p>My Implementation:</p>
  
  <pre><code>public class NewRestServiceImpl implements NewRestService { 
     public void downloadPOD(...);
  
     //other method implementations
  }
  </code></pre>
  
  <p>When I do this, it says </p>
  
  <blockquote>
    <p>downloadPOD()is undefined:</p>
  </blockquote>
  
  <pre><code>@Autowired
  private RestService restService;
  ...
  restService.downloadPOD(...)
  
  </code></pre>
  
  <p>Please enlighten me. Thanks</p>