• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is AspectJ,Interceptor?  RSS feed

 
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
Sheriff
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: 17309
11
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
Boost this thread!