O'Reilly logo

AspectJ in Action by Ramnivas Laddad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. AspectJ weaving models

This chapter covers

  • Classifying weaving models

  • Using build-time weaving

  • Using load-time weaving

Until now, we've focused on writing aspects. But for aspects to have effect, you need to weave them. Weaving, a fundamentally critical mechanism in implementing AOP, composes classes and aspects into an executable system.

The most basic form of weaving is build-time source-code weaving, where the AspectJ compiler compiles source files to produce a woven system. Although this form offers the best experience by providing immediate feedback for source-code errors and by eliminating deployment modifications, using a new compiler can impede AOP adoption. One alternative is build-time byte-code weaving, which lets you delay the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required