title: Spring Bean Alias in JavaConfig
body: <p>I have a <code>@Service</code> annotated class which provides core functionality which I can use in all my projects:</p>
  
  <pre><code>@Service
  public class MyService {}
  </code></pre>
  
  <p>and another one which extends it to implement project specific stuff:</p>
  
  <pre><code>@Service
  public class ExtendedMyService extends MyService {}
  </code></pre>
  
  <p>Now I would like to configure a bean alias to be able to use <code>@Qualifier("MyServiceAlias")</code> when autowiring it using a property:</p>
  
  <pre><code># MyService qualifier (default: myService)
  myService.qualifier=extendedMyService
  </code></pre>
  
  <p>In XML it would look like:</p>
  
  <pre><code>&lt;alias name="${myService.qualifier}" alias="MyServiceAlias" /&gt;
  </code></pre>
  
  <p>It is also discussed <a href="https://stackoverflow.com/a/12715752/1163457">here</a>, but I need to do it w/o XML, JavaConfig only.
  Is it possible and how to realize?</p>