4 After (finally) advice
After (finally) advice runs however a matched method execution exits. It is
declared using the @After annotation. After advice must be prepared to
handle both normal and exception return conditions.
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.After;
@Aspect
public class AfterFinallyExample {
@After("com.xyz.myapp.service()")
public void logRequiredTask() {
// ...
}}