-
Jan 13th, 2010, 10:01 AM
#1
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:
@Around("within(com.company.server.rpc.view.*)")
i've tried execution advice.. naming the class/method (GsonView.renderMergedOutputModel(..)) etc etc
Never executes that advice etc.
ANy ideas?
Thanks,
Roger
-
Jan 14th, 2010, 03:42 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules