wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes AOP Patterns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "AOP Patterns" Watch "AOP Patterns" New topic
Author

AOP Patterns

HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Are there any good references for AOP Patterns ?
Thanks.
regards
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

What about Anti patterns?


Groovy
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
It took decades for the first (OO) pattern book to come out... Naturally, it won't take that long with AOP but patterns need to be discovered, not invented.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

I think it should be possible to apply our already know pattern knowledge on AspectJ as well without much difficulty. Lasse ,do you agree? :roll:
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Pradeep Bhat:
I think it should be possible to apply our already know pattern knowledge on AspectJ as well without much difficulty. Lasse ,do you agree? :roll:

To some degree, probably yes. However, I really can't say whether aspects need new structuring approaches compared to classes in OOP.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

However, I really can't say whether aspects need new structuring approaches compared to classes in OOP.

Does it mean that AOP have overcome the limitations of OOP. I am talking about any limitation that have been addressed in AOP.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Does it mean that AOP have overcome the limitations of OOP. I am talking about any limitation that have been addressed in AOP.

At least AOP has overcome OOP's limitation of not being able to modularize certain parts an application (trying hard to avoid repeating the phrase "cross-cutting concerns" over and over again...).
Ramnivas Laddad
Author
Ranch Hand

Joined: Jul 23, 2003
Posts: 62
Indeed, it takes a considerable amount of time before patterns emerge. However, everything happens a bit faster these days :-) AspectJ in Action includes a chapter dedicated to 4 AOP design patterns (the worker object creation, the participant, the exception introduction, and the wormhole). The first three are my original contribution (and therefore I got opportunity to name those patterns!).
Besides these native AOP patterns, AspectJ/AOP can be used to modularize OOP patterns. See http://www.cs.ubc.ca/~jan/AODPs where there is a paper and source code for all 23 GoF pattern in regular Java and AspectJ.
-Ramnivas
[ September 19, 2003: Message edited by: Ramnivas Laddad ]

Ramnivas Laddad
Author, AspectJ in Action (http://manning.com/laddad2)
Twitter: ramnivas
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Thanks Ramnivas.
A few patterns seem to be expected of any new stuff.

regards
 
GeeCON Prague 2014
 
subject: AOP Patterns