[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Constructor join point
|
Also try
execution(new(..)) && !within(ConstructorAspect)
or
execution(*.new(..)) && !within(ConstructorAspect)
Wes
> ------------Original Message------------
> From: Fernando Ferreira Campos <fernandofcampos@xxxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Date: Wed, Nov-10-2004 10:15 AM
> Subject: [aspectj-users] Constructor join point
>
> I have a aspect that traces constructors calls, like this:
>
> public aspect ConstructorAspect{
> pointcut contructorExec() : execution(*.*.new(..)) &&
> !within(ConstructorAspect);
>
> before() : contructorExec(){
> System.out.println( "Constructor executed" );
> }
> }
>
>
> When I weave it into a pre-compiled .jar file and run the application,
> nothing is printed. What is wrong?
>
> Regards,
> Fernando.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>