Hi Guys ..
Is there any way in spring AOP to trace for instance any constructor execution ( every line where i have "new" ) ??
I know it is quite easily done in AspectJ ..
Thanks in advance
Hi Guys ..
Is there any way in spring AOP to trace for instance any constructor execution ( every line where i have "new" ) ??
I know it is quite easily done in AspectJ ..
Thanks in advance
No. Spring AOP is based on proxies, so the only aop stuff you can do is the execution of methods, and only external method calls.Is there any way in spring AOP to trace for instance any constructor execution ( every line where i have "new" ) ??
If you want to do something else/more you will have to use loadtimeweaving (or compile time) and for instance AspectJ. The 2 can be easily combined, check the reference guide.
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan