views:

148

answers:

3

I am doing research on a SOA topic and i am trying to understand what gang of four say about aspect orientation. I also need to implement one of these pattern in AOP paradigm.

What would be best pattern to pick for this?

+2  A: 

What about Decorator?

This seem totally natural with AOP ! The signature stays the same, but some behavior is added... :-)

KLE
+1  A: 

AOP concerns itself with orthogonal (cross cutting) concerns, an example of which is logging. Given this, the pattern that would help this cause the most would be the Observer pattern.

This online book chapter:

http://www.springerlink.com/content/v7436h45532h8643/

presents the aspect-oriented implementation of five well-known design patterns: Singleton, Observer, Command, Chain of Responsibility, and Proxy.

Intuitively, I would think that Inversion of Control (IoC) would play a part as well, since it decouples the implementation of a software function from its surrounding components.

Robert Harvey
+1  A: 

If you can splurge on a book, the AspectJ Cookbook has chapters on how AOP can be used in the various GOF patterns.

toolkit