[BooK] Aspectj Cookbook.pdf


Aperçu du fichier PDF book-aspectj-cookbook.pdf

Page 1...4 5 678364




Aperçu texte


Recipe 22.1. Applying Development Guidelines and Rules ...................................................... 323
Recipe 22.2. Applying Transactions........................................................................................... 326
Recipe 22.3. Applying Resource Pooling................................................................................... 329
Recipe 22.4. Remoting a Class Transparently Using RMI......................................................... 333
Recipe 22.5. Applying a Security Policy.................................................................................... 335
Chapter 23. Applying Aspect-Oriented Design Patterns ................................................................ 337
Introduction ................................................................................................................................ 338
Recipe 23.1. Applying the Cuckoo's Egg Design Pattern........................................................... 339
Recipe 23.2. Applying the Director Design Pattern ................................................................... 342
Recipe 23.3. Applying the Border Control Design Pattern ........................................................ 346
Recipe 23.4. Applying the Policy Design Pattern ...................................................................... 349
Appendix A. The AspectJ Runtime API ......................................................................................... 352
A.1. org.aspectj.lang ................................................................................................................... 353
A.2. Signature ............................................................................................................................. 358
A.3. org.aspectj.lang.reflect........................................................................................................ 360
A.4. The SoftException Class..................................................................................................... 363
A.5. The NoAspectBoundException Class................................................................................. 364