Annotation | Description |
@Before | The advice method gets called before the method defined in your point cut. |
@After | The advice code gets called after the method defined by your point cut has finished executing. |
@Around | An advice that combines the @Before and @After, executing some code before the method in the point cut and some after. |
@AfterThrowing | An advice that executes after an exception have been thrown, and before it’s caught. |
The Guy’s at Spring have documented how to use these annotations in this document.
No comments:
Post a comment