Spring autowire generic type
<p>Spring (from version 4) claims to support generic type injection and I'm trying to do something like this:</p>

<pre><code>public abstract class AbstractControl&lt;T extends IService&gt; {

@Autowired
private T service;

protected T getService(){
    return service;
}

public void setService(T service) {
    this.service = service;
}
</code></pre>

<p>}</p>

<p>then an extension of this class:</p>

<pre><code>public class FooControl extends AbstractControl&lt;LoginService&gt; {
}
</code></pre>

<p>but Spring is trying to inject <code>IService</code>. Is it possible to inject the inherited type?</p>