Chapter 7. Spring Schemas and Namespaces

In this chapter, we are going to look at Spring namespaces. You are going to learn about the new and simplified way to write Spring bean XML files, and we will discuss all the schemas provided out of the box by the Spring Framework. In addition, you will see how easy it is to write a custom Spring schema and its handler.

The main attraction of the new schema- and namespace- style configurations is their simplicity and expressiveness. They allow you to be very precise about the values allowed in each element and attribute. Because you can create your own schemas and namespaces, you can make the configuration much easier to write. It is not unusual to have a shared component—say in your company's Maven 2 repository—with ...

Get Pro Spring 2.5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.