• 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:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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.
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!