Announcement Announcement Module
Collapse
No announcement yet.
Construcor Execution Tracing Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Construcor Execution Tracing

    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

  • #2
    Is there any way in spring AOP to trace for instance any constructor execution ( every line where i have "new" ) ??
    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.

    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.

    Comment

    Working...
    X