Announcement Announcement Module
Collapse
No announcement yet.
AOP and Spring MVC View (extending AbstractView) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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.

    Comment

    Working...
    X