weaving java and javax classes [message #659504] |
Mon, 14 March 2011 11:06 |
Celal Messages: 7 Registered: March 2011 |
Junior Member |
|
|
Hi all,
I'm trying to print signatures of all methods called in an application (basically the whole call tree under "main" for a single thread java application).
Now the issue is, I can't get the java.* and javax.* classes weaved.
I have read pretty much everything on the web, including using the flags "-Xset:weaveJavaPackages=true,weaveJavaxPackages=true" in my weaver options, but I just can't get this to work.
Let me give some information:
- I use load-time-weaving.
- In my aop.xml, I describe the weaver with:
<weaver options="-Xset:weaveJavaPackages=true,weaveJavaxPackages=true -verbose -debug -showWeaveInfo">
<include within="javax.*"/>
<include within="java.*"/>
<include within="*"/>
</weaver>
(yep, I shouldn't need the java and javax ones since I use *, but I'm desperate at this point ).
- My aspect uses around, with this pointcut:
execution(* *(..)) && !within(MethodTracer)
I can see that my own classes are weaved and my own methods are traced, but not the javax and java ones.
I am doing the simplest thing to test this: use "System.out.println()" to see that it gets executed and my aspect is woven on it. But unfortunately this is not the case for me.
I'm sure this has come up many times before (as I said, I have read anything I could find on google), but I'm just stuck. Maybe another pair of eyes could help me..
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05017 seconds