CAS Client Dependency Injection
Mark McLaren
mark.mclaren at gmail.com
Mon Nov 20 09:38:05 EST 2006
I was looking at the JA-SIG CAS Java client 3.0.0 code and was pleased
to see that it is using the Spring Framework. I hope this is taken as
a constructive criticism but I was a little surprised to see the
various filters defined using constructor rather than setter based
dependency injection. I was under the impression that generally the
preferred approach was usually setter injection? As I understand it
setter injection is a bit more readable for the user and does not rely
on the order of the constructor arguments.
Would it be preferable to support both methods of initialization?
Mark
More information about the cas
mailing list