Quick thought about XML vs annotations for Spring wiring

Brent Putman putmanb at georgetown.edu
Thu Sep 24 13:23:22 EDT 2015



On 9/24/15 10:34 AM, Misagh Moayyed wrote:
>
>
> I'd nonetheless be interested to explore
> possibilities to automate the entire bean configuration as much as
> possible and remove XML config where allowed. Whether that is via
> annotations or something else...


As I mentioned earlier, the Spring Java config stuff is a nice middle
ground between the one extreme of XML and the other extreme of actually
invasively annotating classes themselves as beans (as with Scott's
emergent behavior).  For some things it might make sense for us to look
at this.  As long as we provide a way for someone to specify the very
minimal XML to bootstrap the @Configuration classes, we may not even
really have to do anything to support.    (As discussed, we already
provide for the root web ApplicationContext, but not for the MVC
DispatcherServlet context).  This would obviously be of greater
interest to extension developers, perhaps not as much for local
customizers who don't want to have to write Java.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150924/fa20246b/attachment-0001.html>


More information about the dev mailing list