• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is MethodInterceptor in aopalliance?

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh oh..
satou...

very new terms

please tell me more !
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://static.springframework.org/spring/docs/2.0.x/reference/aop.html#aop-advice
 
Jessica James
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic