I\'d like to inject my service in Groovy/src class. The normaln dependency injection doesn\'t work:
... def myService ...
I\'m able to use
The replacement of ApplicationHolder can be Holders, you can also use it in static scope:
import grails.util.Holders ... def myService = Holders.grailsApplication.mainContext.getBean 'myService'