Possible Duplicate:
Anyway to @Autowire a bean that requires constructor arguments?
In my controller I want to use @Autowired to inject a class using the method / constructor autowiring. for example using:
@Autowired
private InjectedClass injectedClass;
My problem is that the injected class injectedClass have a constructor, and I need to pass a variable to the constructor from the controller. How can I pass values to the constructors?