25.02.2015 Views

Introducing Spring Framework

Introducing Spring Framework

Introducing Spring Framework

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■ Contents<br />

■■Chapter 3: Applying Different Configurations25<br />

My Documents XML Configuration25<br />

Using <strong>Spring</strong> Annotations33<br />

<strong>Spring</strong> Stereotypes37<br />

Using the Java Bean Configuration 37<br />

Using the GroovyBeanDefinitionReader Class40<br />

Which Configuration to Choose?43<br />

Summary43<br />

■■Chapter 4: Using Beans Scopes45<br />

Scopes45<br />

Using the @Scope Annotation49<br />

Using Bean Scopes in the New GroovyBeanDefinitionReader Context51<br />

Summary52<br />

■■Chapter 5: Working with Collections and Custom Types53<br />

List, Map, and Properties53<br />

Collections in Your XML Configuration55<br />

Merging Collections57<br />

Summary60<br />

■■Chapter 6: Using Resource Files61<br />

Using Resources61<br />

Using Property Files67<br />

Using a Different Language: Do You Speak Spanish?71<br />

Summary73<br />

■■Chapter 7: Testing Your <strong>Spring</strong> Application75<br />

Testing with Annotations75<br />

Using Profiles77<br />

More Test Annotations83<br />

Summary85<br />

viii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!