• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

What is MethodInterceptor in aopalliance?  RSS feed

 
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?
 
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.
 
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
Boost this thread!