Pages

Thursday, 24 March 2016

Meta-programming and Guice

I really like the meta-programming style of JDBI and Feign. They allow developers to focus on what is important rather than the boilerplate code. However I find that once you introduce Dependency Injection with them the boilerplate begins to creep back in.
Which is why I've written jdbi-guice and feign-guice. These two libraries allows developers to to simply point Guice at the package(s) containing the JDBI SQL Objects or Feign resources and Guice will have each classes in the package bound to a JDBI or Feign provided object. 
Like all good libraries, they are on Maven Central so give 'em a go and let me know if you find them useful or if I've missed some vital feature.
(Also posted on Linked In)

No comments:

Post a Comment