Grails
  1. Grails
  2. GRAILS-7952

AOP Support for a Domain in plugin

    Details

      Description

      I would like to wrap Domain class's dynamic methods like save() get*() with an Around advice (using Spring AOP). That too I would like to do within a plugin.

      Based on some investigation some people talk about solution which involves Hibernate's events http://stackoverflow.com/questions/1...in-object-save . However my objective is to use the outcome of the call in the After advice and sometimes I want to skip actual call itself which I feel is not possible with Event model.

      I could not find any details (documentation) on how dynamic methods in a Domain works. However right now, the detail on how I could add AOP in Domain objects during plugin time will be helpful.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Shrikant Vashishtha
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development