Jan 13th, 2010, 10:01 AM
AOP and Spring MVC View (extending AbstractView)
I am using AOP successfully (@Around) on my controllers.
For some reason, any of my views, that extend AbstractView.. I can't seem to do @Around advice on.
specifically, I implement the method renderMergedOutputModel.
This is a protected method.
I use this advice:
i've tried execution advice.. naming the class/method (GsonView.renderMergedOutputModel(..)) etc etc
Never executes that advice etc.
Jan 14th, 2010, 03:42 AM
I suggest the forum search as similair questions have been answered numerous times.
Short: Spring uses proxy based aop, you can only intercept external methods call, for view that is only render all other method calls are internal method calls.