mardi 24 février 2015

Grails @DelegateAsync and dependency injection

I'm trying to use @DelegateAsync and running into some problems.


My setup looks pretty much like this:



@DelegateAsync(SynchronousService)
class AsyncService extends BaseService {}

class SynchronousService extends BaseService {}

abstract class BaseService {
def grailsApplication
}


It seems that grailsApplication and other beans are never injected into SynchronousService. Should they be? AsyncService has everything wired up as I'd expect.


Aucun commentaire:

Enregistrer un commentaire