concept library aspect in category aspectj

appears as: library aspects, library aspect, library aspect
AspectJ in Action, Second Edition

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

Like a class, an aspect that contains abstract pointcuts or methods must declare itself as an abstract aspect. Any subaspect of an abstract aspect that doesn’t define every abstract pointcut and method in the base aspect, or that adds additional abstract pointcuts or methods, must also declare itself abstract. The mechanism of creating abstract aspects is useful for library aspects, such as for transaction management.

Listing 11.27. Swing library aspect

12.4.5. Role of ADPP in library aspects

ADPP provides tremendous benefits in writing library aspects by simplifying the collaboration needed by the library users. The aspects in the library often use the bridged participation pattern discussed in the previous section. Instead of writing subaspects and pointcuts (which can be a daunting task for programmers not yet experienced with AOP), library users mark program elements with annotations to participate in the collaboration. Our use of the @Cachable annotation in chapter 4 fits this purpose of creating a reusable solution.