Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] adviceexecution without cflow

> 
> public aspect TestAdviceExecution {
> 
> 	 pointcut methods(): execution(public * *(..));
> 
> 	 before(): methods() && !adviceexecution() {
> 		 Log.logging("Logging...");
> 	 }
> 
> }
> 
> I do not know if I am right, but why do I have to use the cflow in
this
> example?

Because your pointcuts matches execution joinpoints, some of which are
in the class Logger (and not in an advice!). 

Eric


Back to the top