Spring 2.5 Aspect Oriented Programming

Create dynamic, feature-rich, and robust enterprise applications using the Spring framework

Spring 2.5 Aspect Oriented Programming

Starting
Massimiliano Dessì

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

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 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.

+ Collection
Free Sample

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
Summary
Chapter 2: Spring AOP Components
Aspect
Pointcut
Operations on Pointcut
Joinpoint
Advice
Advisor
Introductions
Summary
Chapter 3: Spring AOP Proxies
Proxy
JDK proxy
CGLIB proxy
Creating proxies programmatically
ProxyFactoryBean
Autoproxy
Target sources
Summary
Chapter 4: AspectJ Support
AspectJ annotations
XML Schema-based configuration
Recipes
AspectJ weaving in Spring
Summary
Chapter 5: Design with AOP
Concurrency with AOP
Transparent caching with AOP
Security with AOP
Summary
Chapter 6: Three-tier Spring Application, Domain-Driven Design
Domain-Driven Design
Sample application
Summary
Chapter 7: Three-tier Spring Application, Tests and AOP
Application layer and user interface
Test
AOP
Summary
Chapter 8: Develop with AOP Tools
Java Development Kit
Spring
Eclipse
Eclipse plug-ins (Linux, MacOSX, and Windows)
Apache Tomcat
PostgreSQL
Summary

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.

    Authors

    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
    Summary
    Chapter 2: Spring AOP Components
    Aspect
    Pointcut
    Operations on Pointcut
    Joinpoint
    Advice
    Advisor
    Introductions
    Summary
    Chapter 3: Spring AOP Proxies
    Proxy
    JDK proxy
    CGLIB proxy
    Creating proxies programmatically
    ProxyFactoryBean
    Autoproxy
    Target sources
    Summary
    Chapter 4: AspectJ Support
    AspectJ annotations
    XML Schema-based configuration
    Recipes
    AspectJ weaving in Spring
    Summary
    Chapter 5: Design with AOP
    Concurrency with AOP
    Transparent caching with AOP
    Security with AOP
    Summary
    Chapter 6: Three-tier Spring Application, Domain-Driven Design
    Domain-Driven Design
    Sample application
    Summary
    Chapter 7: Three-tier Spring Application, Tests and AOP
    Application layer and user interface
    Test
    AOP
    Summary
    Chapter 8: Develop with AOP Tools
    Java Development Kit
    Spring
    Eclipse
    Eclipse plug-ins (Linux, MacOSX, and Windows)
    Apache Tomcat
    PostgreSQL
    Summary

    Book Details

    ISBN 139781847194022
    Paperback332 pages
    Read More