Explian the Before advice?

Explian the Before advice?

Before the purchasing of our customer, we want to give them a warm greeting. For this, we need to add functionality before the method buySquishee() is executed. To accomplish this, we extend the MethodBeforeAdvice interface:
  public interface MethodBeforeAdvice{
    void before(Method m, Object[] args, Object target) throws Throwable
This interface provides access to the target method, the arguments passed to this method, and the target object of the method invocation.

Date:2002-02-09 00:00:00

Post Your Answers

User Email:

User Name:

Related Spring sub Links

Spring sub interview questions and answers for experienced and fresher