I am wiring my UserService
type classes using spring's IOC.
But what about my User
class?
I have a interface User, then a UserImpl
class.
In my controller action's do I just do:
User u = new UserImpl();
Or would it sometimes make sense to use IOC for this also?
Sometimes I use a different constructor also when instantiating a class, based on some conditions. I guess your stuck in these situations?