title: Is there a way to @Autowire a bean that requires constructor arguments?
body: <p>I'm using Spring 3.0.5 and am using @Autowire annotation for my class members as much as possible.  One of the beans that I need to autowire requires arguments to its constructor.  I've looked through the Spring docs, but cannot seem to find any reference to how to annotate constructor arguments.</p>
  
  <p>In XML, I can use  as part of the bean definition.  Is there a similar mechanism for @Autowire annotation?</p>
  
  <p>Ex:</p>
  
  <pre><code>@Component
  public class MyConstructorClass{
  
    String var;
    public MyConstructorClass( String constrArg ){
      this.var = var;
    }
  ...
  }
  
  
  @Service
  public class MyBeanService{
    @Autowired
    MyConstructorClass myConstructorClass;
  
    ....
  }
  </code></pre>
  
  <p>In this example, how do I specify the value of "constrArg" in MyBeanService with the @Autowire annotation?  Is there any way to do this?</p>
  
  <p>Thanks,</p>
  
  <p>Eric</p>