Intro
Speaker's qualifications
Overall presentation goal
Motto
Agenda
Spring configuration (1)
Spring Configuration (2)
In short
Example - diagram
Example - configuration
Popular definition
Using <beans>
Using a namespace
XML Pros
XML Cons
XML alternatives
java.util.Properties
Using Properties
Pros/Cons
Using Properties
Annotations
Java Configuration (1)
Java Configuration (2)
Java Configuration (3)
Java Configuration in action
@Configuration
@Bean
@Bean
@ExternalBean
Java Configuration (2)
Private/Hidden beans
Private beans example
Private beans test
Private beans and contexts
Using Java Configuration
Java Configuration Pros
Java Configuration Cons
Annotation-driven injection (ADI)
JSR-250 annotations
Annotation Driven Injection Example
@Autowired
Using Annotation Driven Injection
Annotation Driven Injection Pros
Annotation Driven Injection Cons
ADI vs Java Configuration
Component Scanning
Component Scan Usage
Component Scan Pros
Component Scan Cons
Programmatic configuration
Programmatic example
Pros/Cons
Scripting
When Java is not enough
Grails Spring Bean Builder
Pros/Cons
Mix and Match
Spring JavaConfig + Groovy + XML
Tooling
Configuration overview
Summary
Spring is about choice
Even though XML is by far, the most popular way of configuring the Spring container, it is not the only one. In this session we will focus on existing alternatives to XML, how they relate to the Inversion of Control (IoC) principle as well as the effect they have on development and deployment.
Costin Leau is an Interface21 consultant based in Romania. His interests include data access and aspect oriented programming. With significant development experience, Costin is currently working on the Spring JPA support project, Pitchfork (http://www.interface21.com/pitchfork), and has recently co-authored Interface21's public Hibernate training course.