Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between AOP and Interceptor

 
Naresh Shanmugam
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a project is designed using Spring and Struts2, can somebody tell when to use Interceptor in Struts2 and When to use AOP in Spring. This is always confusing us.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use S2 interceptors when it's something related only to the normal S2 flow and/or need access to S2 infrastructure. Use AOP for everything else.
 
Naresh Shanmugam
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
need access to S2 infrastructure


David could you please give me an example for this.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something on the value stack, like the action.
 
Naresh Shanmugam
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got the point. Thanks for your valuable time David
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic