Free Sample
+ Collection

Spring 2.5 Aspect Oriented Programming

Massimiliano Dessì

Create dynamic, feature-rich, and robust enterprise applications using the Spring framework
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847194022
Paperback332 pages

About This Book

Who This Book Is For

If you are a Java software architect, engineer, or developer and want to be able to write applications in a more modular and concise way by using Spring, then you need this book. Readers need basic knowledge of Spring and its configuration.

Table of Contents

Chapter 1: Understanding AOP Concepts
Limits of object-oriented programming
The AOP solution
What Spring provides in terms of AOP
AOP with IoC in Spring 2.5
Chapter 2: Spring AOP Components
Operations on Pointcut
Chapter 3: Spring AOP Proxies
JDK proxy
CGLIB proxy
Creating proxies programmatically
Target sources
Chapter 4: AspectJ Support
AspectJ annotations
XML Schema-based configuration
AspectJ weaving in Spring
Chapter 5: Design with AOP
Concurrency with AOP
Transparent caching with AOP
Security with AOP
Chapter 6: Three-tier Spring Application, Domain-Driven Design
Domain-Driven Design
Sample application
Chapter 7: Three-tier Spring Application, Tests and AOP
Application layer and user interface
Chapter 8: Develop with AOP Tools
Java Development Kit
Eclipse plug-ins (Linux, MacOSX, and Windows)
Apache Tomcat

What You Will Learn

  • Learn how Aspect-Oriented Programming can support Object-Oriented Programming to solve problems in the implementation phase
  • Write clean and concise code by implementing concurrency control in cross-cutting functionalities to manage code easily and create applications quickly
  • Realize a dynamic proxy with JDK, by implementing an interface that manages invocations
  • Realize the structural behavior of the pattern proxy design pattern by applying the crosscutting concerns of security, logging, and transactionality to specific Joinpoints
  • Simplify applying Advices through using AspectJ annotations
  • Develop better applications by handling important functionalities such as transaction management, application logging, exception management, and layout
  • Learn how the AOP enabled by the Spring Framework and Inversion of Control (IoC), can help you to remove the implementation compromises in applications
  • In Detail

    Developing powerful web applications with clean, manageable code makes the maintenance process much easier. Aspect-Oriented Programming (AOP) is the easiest and quickest way to achieve such results. Spring is the only Java framework to offer AOP features. The combined power of Spring and AOP gives a powerful and flexible platform to develop and maintain feature-rich web applications quickly.

    This book will help you to write clean, manageable code for your Java applications quickly, utilizing the combined power of Spring and AOP. You will master the concepts of AOP by developing several real-life AOP-based applications with the Spring Framework, implementing the basic components of Spring AOP: Advice, Joinpoint, Pointcut, and Advisor.

    This book will teach you everything you need to know to use AOP with Spring. It starts by explaining the AOP features of Spring and then moves ahead with configuring Spring AOP and using its core classes, with lot of examples. It moves on to explain the AspectJ support in Spring. Then you will develop a three-layered example web application designed with Domain-Driven Design (DDD) and built with Test-Driven Development methodology using the full potential of AOP for security, concurrency, caching, and transactions.


    Read More