Want Some Guice? Yes Please..

I don’t know if you guys ever watch the Google IO presentations but if you don’t you should because sometimes you find a gem. Guice is one of those gems. Guice is a lightweight Java dependency injection framework (not another one I hear you cry) but it does look very interesting. Take a look at the video if you have time.

Those of you that read this blog regularly will know that I have been moaning about Java web development for a while because it takes more time setting stuff up than it does actually coding the thing and it puts me off. I have been threatening the world that I would be working on my own framework but I now may not have to because Guice actually seems to have most of the things that I was looking for. I am going to take a further look and see if their are any more cool things or any concerns.

It fits well with the new Java app engine api as you would expect and the very cool thing I liked is GWT with GIN that can actually compile your modules/injections to Javascript so that they can be used to write the client side interface. I found that rather cool. There are a few pieces missing such as the ability to compile down method injections but in the video they confirmed this is coming soon. I now think that the app engine has finally reached the stage where I would be interested in releasing apps onto it and would recommend it to others. Yeah there are plenty of concerns about data privacy but the same can be said with any cloud environment and especially one that is hosted in the USA. As far as I see it, as long as your app is not storing data critical to national safety I don’t see a problem :)

So, I am currently setting it up, will write an app, release it onto the app engine and write something about it here with any insights I may have.

Leave a Reply

Or you can login using your facebook account