Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] How to use "call pointcut", when using reflection

Hi Guys

I am quite new to aspectJ and facing a problem, when the calls (methods
or constructors) are made (using reflection).

The problem : If I have to use "call pointcut" as in
call(ConstructorPattern) and if there the constructor is invoked via
reflection then it doesn't seem to execute the advice. I believe the
reason is at the compile time weaving the "ajc compiler" does not weave
for clients executing via reflection.

The issue is I CANNOT use "execution pointcut" as I have to get return
type from the "call(ConstructorPattern)"

I am sure you guys would have faced this problem and could suggest or
shed some light here.

Cheers in advance.
Tarun

-- 
  Tarun Sharma
  t_sharma@xxxxxxxxxxxx

-- 
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place


Back to the top