Refactoring and IDEA are my friend Cedric says no to AOP and annotations
May 13

Using AspectJ and the AOP Alliance

AOP, Tech Add comments

Adrian Colyer has created a new blog.

His first post was on how you can use AspectJ to invoke AOPAlliance compliant interceptors (those from Spring, dynaop, etc).

Read Integrating AspectJ and AOP Alliance based aspects

I was taking part in the AOP panel discussion at last weeks TSS symposium, and listening to Rod Johnson and Bob Lee describe how dynaop and Spring can share aspects since they both implement the AOP Alliance interfaces. Sounds like both projects have some great aspects already written, and with more to come the obvious question crossed my mind: can I use aspects written to the AOP Alliance interfaces from within AspectJ?

A few hours later and I had a solution that lets you use the expressive power of AspectJ’s pointcut language to invoke advice (interceptors) written to the AOP Alliance interfaces, and to freely mix and match AspectJ and AOP Alliance advice in the same program, even applying at the same join points. Here’s how it looks…

Welcome Adrian.

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'cricket'