Wiley Beginning Spring Framework 2 978-0-470-10161-2 Manual De Usuario

Los códigos de productos
978-0-470-10161-2
Descargar
Página de 28
Inversion of control (IoC) is used throughout Spring applications to decouple dependencies that typically
block reuse and increase complexity in J2EE environments. Instead of a component manually looking up
the provider of a service, the provider is injected into the component by the Spring container at runtime.
This enables you to write reusable components that are independent of provider-specific features.
AOP is a core enabler in Spring. AOP support enables you to factor crosscutting concerns out of your appli-
cation and maintain them separately from the main body of code. Some common crosscutting concerns for
applications include logging, security implementation, and transactions. The maintenance of such code in
separate code modules called aspects makes the main body of code clearer and easier to maintain, while
changes in the crosscutting concerns require only modification of the aspects, not of the (potentially large)
main code body. Spring provides a proxy-based AOP implementation, as well as integration with the pop-
ular AspectJ AOP programming language.
In addition to the core application plumbing that can apply to any kind of Java application, Spring also
provides a rich API and prefabricated component support for creating applications. These components
and APIs can be used to build enterprise Java applications without the deployment of a conventional
Java EE server.
28
Chapter 1: Jump Start Spring 2
01612c01.qxd:WroxPro  10/31/07  10:42 AM  Page 28