Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] perJoinPoint

Does this not work?

-----
aspect A {
  void trace(JoinPoint.StaticPart jp) { .. }

  // method-execution 
  before() : execution(* *(..)) && !within(A) {
     trace(thisJoinPointStaticPart);
  }
  // or, if you want advice-execution 
  // be careful if other advice advises this
  before() : adviceexecution() && !within(A) {
     trace(thisJoinPointStaticPart);
  }
}
------

Wes

------------Original Message------------
From: Ťavoda Pavel <Pavel.Tavoda@xxxxxxxxxx>
To: aspectj-dev@xxxxxxxxxxx
Date: Thu, Mar-24-2005 3:07 AM
Subject: [aspectj-dev] perJoinPoint
Is it possible to achieve something like perJoinPoint aspect?
I would like to calculate some statistics for method execution.

TNX

Pavel 



Back to the top