Grails: Dynamically inject service in domain class
- by rukoche
I need to inject a service based on domain property, so far I came up with the following:
ApplicationHolder.application.getServiceClass("package.${property}Service").clazz
but loading it this way doesn't inject it's dependent services. Am I doing it wrong?