Quick thought about XML vs annotations for Spring wiring

Tom Zeller tzeller at dragonacea.biz
Mon Sep 21 11:12:14 EDT 2015


On the last dev call, we talked about whether we preferred XML (i.e. a Servlet) or annotations (i.e. a @Controller). I think that’s an interesting question, and over the weekend I had the thought that the project should not have much of an opinion as long as the configuration is externalized. And by externalized, I mean existing in the filesystem whose root is ${idp.home}. So, for example, if some profile is implemented by a @Controller which is enabled/activated via a property defined as part of a <component-scan /> element, that’s fine.

Just a thought.


More information about the dev mailing list