concept enterprise application in category aspectj

appears as: enterprise applications
AspectJ in Action, Second Edition

This is an excerpt from Manning's book AspectJ in Action, Second Edition.

Spring is the most popular lightweight framework for enterprise applications. To satisfy the needs of enterprise applications, it includes an AOP system based on interceptors and the proxy design pattern. Earlier implementations of Spring AOP (prior to Spring 2.0) offered a somewhat complex programming model. The new programming model, based on AspectJ, offers a much better programming experience and enables Spring users to write custom aspects without difficulty.

Figure 11.1. A typical layered architecture for enterprise applications. The arrows indicate the allowed interaction. Any other interaction is in violation of the layering policy.

Transaction management is perhaps the most widely known crosscutting concern in enterprise applications. Most enterprise applications use persistent storage or a messaging system that leads to the need for the transaction management. Traditional implementations of this crosscutting functionality require embedding the transaction management code in many methods. Owing to its crosscutting nature, AOP offers a compelling and elegant solution to implement this functionality.