Gang-of-four pattern usage in aspect-oriented-programming?

1.1k views Asked by At

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?

3

There are 3 answers

0
toolkit On BEST ANSWER

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

0
KLE On

What about Decorator?

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

0
Robert Harvey On

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.