1
我想出了以下用於跟蹤方法進入/退出的切入點。它沒有壞,也做我想要的,但是:1-我覺得它看起來笨拙或可能更優雅;和2-我不知道它是否防彈。有沒有辦法改善這個切入點?
// 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 * *(..)));
有什麼想法?