Results 1 to 2 of 2

Thread: Obtaining Invoking Object In MethodInterceptor

  1. #1
    Join Date
    Aug 2007
    Posts
    28

    Default Obtaining Invoking Object In MethodInterceptor

    I need assistance. I'm trying to slap a band-aid on an application that will be replaced in 6-9 months, so I want to use MethodInterceptor to replace a database method call.

    Unfortunately, I need the actual invoking object in order to access certain fields in it to dynamically build a new query. How can I do this?

    Jason

  2. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    So, the question is how to get a reference to the currently advised object?

    MethodInvocation.getThis()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •