Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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.


Back to the top