This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AOP Vs handlers  RSS feed

 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by handlers?
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!