Grails
  1. Grails
  2. GRAILS-5701

Conventional support for scoped service proxies

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      Support for creating scoped proxies

      class MyService {
          static scope = 'session'
          static proxy = true // <-- create a proxy
      }
      
      // Spring config
      myServiceProxy(org.springframework.aop.scope.ScopedProxyFactoryBean) {
      	targetBeanName = 'myService'
      	proxyTargetClass = true
      }
      

        Issue Links

          Activity

          Hide
          Stéphane Maldini added a comment -

          Too bad it didn't fit the 1.3

          Show
          Stéphane Maldini added a comment - Too bad it didn't fit the 1.3
          Hide
          Luke Daley added a comment -

          Moving to 2.0... for now people can use the scoped proxy plugin.

          Show
          Luke Daley added a comment - Moving to 2.0... for now people can use the scoped proxy plugin.
          Hide
          Andre added a comment -

          shouldnt this be in scope for 2.0 instead of 3.0 as fix version?

          Show
          Andre added a comment - shouldnt this be in scope for 2.0 instead of 3.0 as fix version?
          Hide
          Luke Daley added a comment -

          Unsure when this will go in core.

          In the meantime you can use https://github.com/alkemist/grails-scoped-proxy

          Show
          Luke Daley added a comment - Unsure when this will go in core. In the meantime you can use https://github.com/alkemist/grails-scoped-proxy

            People

            • Assignee:
              Unassigned
              Reporter:
              Luke Daley
            • Votes:
              12 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Last Reviewed:

                Development