{"id":151,"date":"2007-04-28T10:08:02","date_gmt":"2007-04-28T10:08:02","guid":{"rendered":"https:\/\/virtualchaos.co.uk\/blog\/2007\/04\/28\/google-tech-talk-java-on-guice-dependency-injection-the-java-way\/"},"modified":"2007-04-28T10:08:43","modified_gmt":"2007-04-28T10:08:43","slug":"google-tech-talk-java-on-guice-dependency-injection-the-java-way","status":"publish","type":"post","link":"https:\/\/virtualchaos.co.uk\/blog\/2007\/04\/28\/google-tech-talk-java-on-guice-dependency-injection-the-java-way\/","title":{"rendered":"Google Tech Talk: Java on Guice: Dependency Injection, the Java Way"},"content":{"rendered":"<p><a href=\"http:\/\/video.google.com\/videoplay?docid=6068447410873108038&#038;q=type%3Agoogle+engEDU\">Here&#8217;s a really interesting talk<\/a> about how to use <a href=\"http:\/\/code.google.com\/p\/google-guice\/\">Guice<\/a>, a new open source dependency injection framework for Java by Google. Here&#8217;s  <a href=\"http:\/\/docs.google.com\/Doc?id=dd2fhx4z_5df5hw8\">a link to the user-guide<\/a> which explains, using a example, why Guice might be a great alternative to using static references, or factory patterns when writing unit tests. I haven&#8217;t used Guice yet but i have written many unit tests for services that need to pass in Mocked services using the factory pattern, so I can immediately see the benefit of a framework like Guice.<\/p>\n<p>I&#8217;m going to delve deeper into it, but I recommend watching the tech talk, they work through a simple example and it does sound very useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a really interesting talk about how to use Guice, a new open source dependency injection framework for Java by Google. Here&#8217;s a link to the user-guide which explains, using a example, why Guice might be a great alternative to &hellip; <a href=\"https:\/\/virtualchaos.co.uk\/blog\/2007\/04\/28\/google-tech-talk-java-on-guice-dependency-injection-the-java-way\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,7,8,9],"tags":[404,387,388,389],"class_list":["post-151","post","type-post","status-publish","format-standard","hentry","category-development","category-google","category-java","category-tech-talk","tag-development","tag-google","tag-java","tag-tech-talk"],"_links":{"self":[{"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":0,"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"wp:attachment":[{"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualchaos.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}