For example, you could use an execution(* *.get*()) || execution(boolean *.is*()) pointcut to capture execution of all getter methods and execution(void *.set*(*)) for all setters.
例如,可以使用一个execution(* *.get*()) || execution(boolean *.is*())切入点捕获所有getter方法的执行,对所有setter 使用 execution(void *.set*(*))。
For example, you could use an execution(* *.get*()) || execution(boolean *.is*()) pointcut to capture execution of all getter methods and execution(void *.set*(*)) for all setters.
例如,可以使用一个execution(* *.get*()) || execution(boolean *.is*())切入点捕获所有getter方法的执行,对所有setter 使用 execution(void *.set*(*))。
应用推荐