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

What is MethodInterceptor in aopalliance?

 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want to know what the MethodInterceptor in aopalliance is means?What is the purpose of it?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using AOP under Spring, and I guess this is the same.
A MethodInterceptor is a kind of handler which will be triggered before/after a method is executed.
It may be useful to add some logging stuff before a third party lib's method is being called.
iBatis uses it to log SQL statements when the java.sql.* is being used.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh oh..
satou...

very new terms

please tell me more !
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.... Am also using that for Logging the messages.
Can you please explain that with a simple Example(not with those proxy settings), explaining when the MethodInterceptor is invoked ahen a method is called, and how its log message is logged? of possipple, please give the part of the messages that are logged during the method invocation.
 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.... Am also using that for Logging the messages.
Can you please explain that with a simple Example(not with those proxy settings), explaining when the MethodInterceptor is invoked ahen a method is called, and how its log message is logged? of possipple, please give the part of the messages that are logged during the method invocation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic