A blog about my daily tech ramblings.

Saturday, 3 December 2011

Spring Aspects

December 03, 2011 Posted by Unknown , No comments
Spring aspects can work with five kinds of advice :

  • Before - The advice functionality takes place before the advised method is invoked.
  • After - The advice functionality takes place after the advised method completes, regardless of the outcome.
  • After-returning - The advice functionality takes place after the advised method successfully completes.
  • After-throwing - The advice functionality takes place after the advised method throws an exception.
  • Around - The advice wraps the advised method, providing some functionality before and after the advised method is invoked.

Code Examples should go here...

0 comments:

Post a Comment