Spring == XML, XML == sucks therefore Spring == sucks?
6aa291af-e75a-4adc-bc27-498e95900335
|
Presentation |
Last November, Spring 2.5 was released. This version of Spring, the de-facto Java EE application platform marks the beginning of the introduction of alternative ways to configure components. In the, we've mainly focused on provided XML as the main language to perform Dependency Injection on object. Since 2.5, Spring has introduced several new ways to doing this.
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.
Outline:
- Short introduction of myself
- Short introduction of Dependency Injection as the general subject of the talk. There will be a lively, entertaining and mostly non-technical analogy for DI that will serve for thhe remainder of the talk
- XML configuration option
- Introduction
- Demos
- Drawbacks, advantages, hints, tips and tricks
- @Component/@Autowired configuration option
- Introduction
- Demos
- Drawbacks, advantages, hints, tips and tricks
- @Bean/@Configuration option
- Introduction
- Demos
- Drawbacks, advantages, hints, tips and tricks
- Comparison to other frameworks / DI approaches and conclusion
The session is quite code intensive with relevant demos.
Level:
Anybody can join in, as it's entertaining even for those without Spring experience. For advanced users there's something to learn as well.
Expected audience:
Audience will leave with a clear understanding of Depedency Injection and the options Spring has to facilitate DI.
-
Alef ArendsenI'm affiliated to SpringSource, the company that creates and sustains the Spring Framework and associated projects. I was the sixth committer on the Spring Framework and have been working on and with Spring since the beginning of 2003.



Introductory
Enterprise application development and integration