Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] A Pointcut that matches nothing

neil loughran wrote:
> aspect AllJoinPointsAspect {

>         private boolean TRACE = true;

>         before(): if(TRACE) && !within(AllJoinPointsAspect) {
>                 System.out.println("->"+thisJoinPoint);
>         }
> }

> One of those very useful pointcut designators I find.

Yeah, great. That's the one. Useful indeed since you can turn them
all off with one switch. The other thing about the empty pointcut was
just a syntatically interesting thing.

Thanks a bunch.

Back to the top