No. Actually, I meant more as a class member:
Ex:
Code:
@Component
public class MyConstructorClass{
String var;
public MyConstructorClass( String var ){
this.var = var;
}
...
}
@Service
public class MyBeanService{
@Autowired
MyConstructorClass myConstructorClass;
....
}
In this example, how do I specify the "String var" variable required by MyConstructorClass. If I was using an XML configuration file, I'd be able to use <constructor-args> to specify the value, but how do I do that with the @Autowire annotation?
Thanks,
Eric