Hi
I'm new to Spring and worked with plain
Java objects where I used to make objects immutable (final fields) where made sense.
For Spring it seems that setters are preferred over constructor injection even for immutable objects.
I read in some places that this is for historical reasons regarding compatibility with
EJB v2.x.
So my questions:
* is it okay to use constructor injection or should I stick to setters?
* is there a caveat using constructor injection vs. setters?
Thanks a lot,