Je suis venu avec le pointcut suivant que j'utilise pour l'entrée/sortie de méthode de suivi. Ce n'est pas cassé et fait aussi ce que je veux mais: 1- Je trouve que ça a l'air maladroit ou pourrait être plus élégant; et 2- je ne sais pas si c'est à l'épreuve des balles.Y at-il un moyen d'améliorer ce pointcut?
// tracing the execution of all methods except:
// - toString and descendants
// - methods identified with @NotTraced and descendants
pointcut theMethod() :
within(*.*) &&
!within(tracing.*)
&& execution(* *(..))
&& !adviceexecution()
&& !cflow(adviceexecution())
&& !execution(String *.toString())
&& !cflow(execution(String *.toString()))
&& !execution(@NotTraced * *(..))
&& !cflow(execution(@NotTraced * *(..)));
Des pensées?