concept dynamic crosscutting in category aspectj

appears as: dynamic crosscutting
AspectJ in Action, Second Edition

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

  • A construct to alter program behavior— After a pointcut selects join points, you must augment those join points with additional or alternative behavior. The advice construct in AOP provides a facility to do so. An advice adds behavior before, after, or around the selected join points. Before advice executes before the join point, whereas after advice executes after it. Around advice surrounds the join point execution and may execute it zero or more times. Advice is a form of dynamic crosscutting because it affects the execution of the system. We’ll study AspectJ’s dynamic crosscutting implementation in chapter 4.
  • In the previous chapter, we presented the join point model and examined the pointcut construct as the way to select join points of interest. In this chapter, you’ll put that knowledge to practical use as we discuss dynamic crosscutting. Dynamic crosscutting constructs provide a way to affect the behavior of a system, whereby you can alter behavior at join points selected by pointcuts. After reading this chapter, you should be able to start writing meaningful programs in AspectJ.