AspectJ: How to get accessed field's value in a get() pointcut
问题 I am writing an aspect logger to write a log whenever any member variable in a given class is accessed. If I write a specific pointcut for a single variable like below, I am able to get the value of the field. @Pointcut("get(* abc.ThreadPoolService.drMaxTh)") public void drFields() {} @AfterReturning(pointcut="drFields()", returning="drMaxTh") public void afterAccessingdrFields(int drMaxTh) { LOGGER.info("Accessed the field drMaxTh " + drMaxTh); } But my class has a dozen+ variables, and I