This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes Spring and AOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Spring and AOP" Watch "Spring and AOP" New topic

Spring and AOP

Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
How does Spring support for AOP differ from say AspectJ
Matt Raible
Ranch Hand

Joined: Jan 11, 2001
Posts: 114
The main differences are 1) it doesn't require its own compiler and 2) it doesn't allow you field-level access.

Spring's AOP Framework is designed to do 80% of what most developers will need. For the other 20%, you can integrate AspectJ with Spring or even AspectWerkz.

Matt<br /> <br />Author: <a href="" target="_blank" rel="nofollow">Spring Live</a> and <a href="" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="" target="_blank" rel="nofollow">Raible Designs</a> <a href="" target="_blank" rel="nofollow">Spring Live Blog</a>
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
in the hurry I have replyied to this in another topic already. I feel that the AOP solutions offered by AspectJ and AspectWerkz (and I want to see JBossAOP) are more powerfull than Spring solution. They have gone a long way to arrive where they are now and they brought into scene very nice and clean solutions.


blog -
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
here is my other answer.

I agree. Here's the link:
subject: Spring and AOP
It's not a secret anymore!