Professional Java Development With The Spring Framework [Electronic resources]

Rod Johnsonet

نسخه متنی -صفحه : 188/ 27
نمايش فراداده

Chapter 3: Advanced Container Concepts

Overview

previous chapter, we focused on the core functionality of the Spring bean factory and application context, as well as the concepts of Inversion of Control and Dependency Injection that they are based on. You now know how to configure, initialize, and use a Spring container well enough to handle a number of development use cases and scenarios.

In this chapter we are going to examine some additional, more advanced container capabilities. We are also going to discuss a number of advanced container configuration and usage strategies. A good understanding of most of the content of this chapter is a key to using the Spring container in the most efficient and effective way possible.

This chapter examines:

Spring's Resource abstraction for accessing low-level resources

How the application context can act as a source for localized messages

The simple eventing mechanism supported by the application context

A number of tips and strategies for creating and managing the container

Some handy factory beans that make it much easier to handle some configuration requirements

Strategies for handling testing concerns

Alternatives to XML as the definition format for container configurations, including definitions in Properties format and programmatic definitions