Skip to end of metadata
Go to start of metadata


The Guice plugin provides lightweight dependency injection and AOP for Griffon applications.


The current version of griffon-guice is 0.1
To install just issue the following command:


A Guice injector will be injected into all controllers by default though you can specify additional instances (model, view, or application) it inject them. You can specify injection by placing the following your griffon-app/conf/Application.groovy file:

Any number of guice modules can also be specified in Application.groovy as well:

Instances can then be annotated with @Inject. When injector.injectMembers(this) is called, interfaces with bound implementations will be injected or if the instance annotated with @Inject is a concrete class, it's constructor will be invoked.

  • No labels