“AspectJ Cookbook”: Even Lazy Developers Can Write and Design Better Software

Farnham,UK–“I’m a lazy software engineer in the best possible way,” AspectJ expert Russ Miles admits shamelessly. “I hate doing something more than once. Ironically, this leads me to be a good designer because a good design is modular and flexible in the right places in order to support re-use and avoid writing software more than once. Aspect-oriented programming (AOP), and in particular AspectJ, allows me to design great software in ways that I never could before.” Miles’ new AspectJ Cookbook (O’Reilly) is for even the laziest of developers who want to get into AOP and write and design better software with less effort.

Many developers are interested in AOP, especially in AspectJ, the open source extension of the Java programming language that explicitly supports the AOP approach. “Early adopters of AOP and AspectJ are beginning to come out of the proverbial closet,” reports Miles, “and as the techniques hit the mainstream, there is a definite need for an easy-to-read, practical guide to AspectJ.”

Ideal for all levels of experience, “AspectJ Cookbook” shows readers how AOP is changing the way software is developed, and how they can use AspectJ to make code more modular, easier to develop, maintain, evolve, and deploy. Quick but in-depth and practical recipes deliver hands-on solutions to day-to-day design and programming problems using AOP’s unique approach. Covering everything from pointcut declaration syntax right through to complex design pattern issues, the book includes:

# Getting started with AOP
# Integrating AspectJ with Eclipse, Ant, and the Java command-line tools
# Deploying aspect-oriented applications as servlets, JSPs, web services, and more
# Recipes on every facet of aspects, pointcuts, advice, and the core AOP constructs
# Employing aspects in Java and J2EE design pattern implementations
# Using AOP-specific design patterns to enhance existing Java applications

“I think it’s quite likely that if AOP is not on your resume in the next couple of years, you most certainly will be struggling in the enterprise software development marketplace,” warns Miles. “Truth be told, you may also be feeling a little left behind right across the software design and development board. But if you get up to speed with the theory and especially the practicalities right now, then you will have a definite advantage in the future. Plus your software will just work smarter–and who wouldn’t want that?”

“This book is the one that I would have wanted on my desk when I first picked up AspectJ, and it’s also the one that I still use,” says Miles. “I use these recipes on a daily basis.”

Don't miss