Getting a return value or exception from AspectJ?

后端 未结 3 1602
眼角桃花
眼角桃花 2021-02-19 04:10

I am able to get the signature and arguments from advised method calls, but I cannot figure out how to get the return values or exceptions. I\'m kind of assuming that it can be

3条回答
  •  无人及你
    2021-02-19 04:30

    You can use after() returning and after() throwing advices as in beginning of the following document. If you're using @AspectJ syntax please refer to @AfterReturning and @AfterThrowing annotations (you can find samples here).

提交回复
热议问题