{"url":"https://daiyamamoto.hatenablog.com/entry/20070318/1174191031","author_name":"iad_otomamay","title":" [\u7ffb\u8a33]Guice User's Guide \u25a012.\tDRY (Don't Repeat Yourself)","version":"1.0","author_url":"https://blog.hatena.ne.jp/iad_otomamay/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_url":"https://daiyamamoto.hatenablog.com/","categories":[],"height":"190","blog_title":"\u30ec\u30d9\u30eb\u30a8\u30f3\u30bf\u30fc\u5c71\u672c\u5927\u306e\u30d6\u30ed\u30b0","type":"rich","description":"DRY \uff08\u81ea\u5206\u3067\u66f8\u3044\u305f\u3082\u306e\u3092\u7e70\u308a\u8fd4\u3059\u306a\uff01\uff09Repeating \"binder\" over and over for each binding can get a little tedious. Guice provides a Module support class named AbstractModule which implicitly gives you access to Binder's methods. For example, we could extend AbstractModule and rewrite the above binding as:\u305d\u308c\u305e\u308c\u306e\u30d0\u30a4\u30f3\u30c9\u306e\u305f\u3081\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiyamamoto.hatenablog.com%2Fentry%2F20070318%2F1174191031\" title=\" [\u7ffb\u8a33]Guice User&#39;s Guide \u25a012.\tDRY (Don&#39;t Repeat Yourself) - \u30ec\u30d9\u30eb\u30a8\u30f3\u30bf\u30fc\u5c71\u672c\u5927\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","published":"2007-03-18 13:10:31","image_url":null}