Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is AspectJ,Interceptor?

 
maliny ramu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
I need some general explaination on the AspectJ,Interceptor? As a beginner, i dont really understand or getting the idea of it. Could someone guide me on this with a simple understanding and example?

Thanks in advance.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AspectJ is a Aspect Oriented Programming tool. You can write interceptors around your methods. To put it in a simpler terms, consider the following method in your class:



Now lets assume you want some code to be executed before/after this doSomeOp() is called. Aspect Oriented Programming allows you to do this.
Here's one more article about this:
AspectJ example
[ June 04, 2007: Message edited by: Jaikiran Pai ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"maliny"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic