Light alternative to Guice for Dependecy Injection Container

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Light alternative to Guice for Dependecy Injection Container

Fabiano Taioli
Hi.

I have started a new project

http://fbn.github.io/gimple/

It's a light (one class) dependecy injection container in Groovy inspired by PHP Pimple.

I think could be a nice alternative to guice in Ratpack

Bye bye
Fabiano
Reply | Threaded
Open this post in threaded view
|

Re: Light alternative to Guice for Dependecy Injection Container

Luke Daley
Administrator
Hi,

Thanks for sharing. 

To properly integrate it, all you’d have to do is write an adapter from Ratpack’s http://www.ratpack.io/manual/0.9.7/api/ratpack/registry/Registry.html to your container type. You can then insert this registry via Context.next(Registry) or Context.insert(Registry).