AspectJ pointcuts - get a reference to the joinpoint class and name
问题 I am using the @AspectJ style for writing aspects, to handle logging in our application. Basically I have a pointcut set up like so: @Pointcut("call(public * com.example..*(..))") public void logging() {} and then a before and after advice like so: @Before("logging()") public void entering() {...} ... @After("logging()") public void exiting() {...} I want to create a log in these methods in the following format: logger.trace("ENTERING/EXITING [" className + "." + methodName "()]"); The