before advice:MethodBeforeAdvice
after advice:AfterReturningAdvice
around advice:MethodInterceptor both carry out before and after advices
Throw advice:ThrowsAdvice its just a tag interface,no methd defined in it.However you can define a methd named afterThrowing,as the follow fomulation:
afterThrowing([method],[args],[target],subclassOfThrowable); the parameters surrounded with "[]" can be omissioned.
notify some services to do sth while an exception is occouring.
after advice:AfterReturningAdvice
around advice:MethodInterceptor both carry out before and after advices
Throw advice:ThrowsAdvice its just a tag interface,no methd defined in it.However you can define a methd named afterThrowing,as the follow fomulation:
afterThrowing([method],[args],[target],subclassOfThrowable); the parameters surrounded with "[]" can be omissioned.
notify some services to do sth while an exception is occouring.