I have a trace aspect that needs to be logged:
- Enter
- Exit (return type is not valid)
- Return [returned object]
- Throwinig [Exception Message]
I have problems with the second one. How to create advice for this case without double-registering all exits that also return something, as is the case now that I have one advice @After and one @AfterReturning (value = "publicMethodCall ()", return = "o "), Can I somehow call @AfterReturning advice to get void returns and still get its value when it returns, is not void (maybe not like it would be impossible to determine if the method was returned null or if the return type was invalid).
I, assuming this should be easy, but I do not see it ...
source
share