This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes AOP Vs handlers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "AOP Vs handlers" Watch "AOP Vs handlers" New topic
Author

AOP Vs handlers

jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi All,

I am curious to know when should i use AOP and when should i use handlers in spring web application.
What is advantage in similar situation of using one over the other.
Which is better AOP or Handlers ?

Regards
jatan
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1646
    
    7

What do you mean by handlers?


[How To Ask Questions][Read before you PM me]
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi bill,

I mean org.springframework.web.servlet.handler which are there in spring MVC also spring has AOP. I am curious to know which is good to use where there is similar task like logging or sending email after the request been completed.


Regards
jatan
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1646
    
    7

There are HandlerMappings and HandlerAdapters. They are not all in the org.springframework.web.servlet.handler package. Are you asking what HandlerMappings and HandlerAdapters do? I do not quite understand how AOP plays into your question. If you want to create pointcuts to apply advice which send emails or log you can use AOP for that I just don't understand what it has to do with the handlers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AOP Vs handlers
 
Similar Threads
What is AOP?
AOP
Metaphors of AOP
AOP
Is AOP J2EE?