In this blog, let us talk about Around Advice
. There are some few points about it.
Around Advice
is combination ofBefore Advice
andAfter Advice
.- In a single
Around Advice
we can implement both before and after services. - Note,
Around Advice
is not given by spring framework, it is from Open Source implementation calledAOP
alliance. Around Advice
can be used by any framework which supportsAOP
.Around Advice
can access the return value of business method and it can modify the value and it can return a different value back to the client, as return type is Object, but in theAfter Advice
its not possible right, as its return type is void.