Home » Architecture, Open Source Tools

Spring == XML, XML == sucks, therefore Spring == sucks??

26 August 2009 2 Comments

This session focuses on the various ways of using the Spring container to Dependency Inject objects such as the traditional XML language, the extensible namespaces, the @Autowired and @Component annotations, but also the innovative JavaConfig project that is capable of configuring Java objects using @Bean annotations. Each has drawbacks and advantages and this session will discuss which one you should choose in what scenario. After this code-intensive session, you will walk away with a clear understanding of when XML is a good choice for configuration and when to opt for one of the annotation-based options.

Related Posts:

2 Comments »

  • Peter Veentjer said:

    Although the default ‘language’ for Spring is XML based, it could just as easily be written in something else. There are groovy and ruby based applicationcontext dsl’s out there for Spring.

    So saying that Spring sucks because they use XML, is a strange conclusion at best.

  • Peter Lawrey said:

    IMHO, XML is fine for data if performance is not an issue but a bit rubbish for programming, which is often how it is misused.

    Part of the problem is a lack of tool set. For a proper programming language you have a debugger, profiler, re factoring tools, code analysis. etc. You are starting to see IDE support for XML configuration, but it still has a long way to go.

Comments:

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

*