Explain the After returning advice?

Explain the After returning advice?

We want to make sure that we thank our patrons after they make their purchase. To do this, we implement AfterReturningAdvice:
  public interface AfterReturningAdvice{
    void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable
    }
  } 

Like MethodBeforeAdvice, this advice gives you access to the method that was called, the arguments that were passed, and the target object.

By:Jalees
Date:2002-02-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Spring sub Links

Spring sub interview questions and answers for experienced and fresher