| 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: 1282
|
|
|
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: 1282
|
|
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.
|
 |
 |
|
|
subject: AOP Vs handlers
|
|
|