Hi,
All the examples and code I saw would trigger the invoke() method of the class. I failed to find any example of invoking the before() method.
Hi,
All the examples and code I saw would trigger the invoke() method of the class. I failed to find any example of invoking the before() method.
Implement the MethodBeforeAdvice interface and it will do that automatically.
However with a MethodInterceptor you can achieve the same results. Simple execute your additional stuff before calling the method.proceed().
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
You can also refer to Mark Fisher’s Blog which shows a nice example for logging using aop:aspect style before advice.
-Nikhil