Results 1 to 2 of 2

Thread: Construcor Execution Tracing

  1. #1
    Join Date
    Mar 2008
    Posts
    13

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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.
    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

Posting Permissions

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