{"categories":[],"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiyamamoto.hatenablog.com%2Fentry%2F20070319%2Fp7\" title=\" [\u7ffb\u8a33]Guice User&#39;s Guide \u25a022.\tScoping Bindings  - \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>","height":"190","width":"100%","blog_url":"https://daiyamamoto.hatenablog.com/","title":" [\u7ffb\u8a33]Guice User's Guide \u25a022.\tScoping Bindings ","provider_name":"Hatena Blog","author_name":"iad_otomamay","type":"rich","author_url":"https://blog.hatena.ne.jp/iad_otomamay/","provider_url":"https://hatena.blog","url":"https://daiyamamoto.hatenablog.com/entry/20070319/p7","blog_title":"\u30ec\u30d9\u30eb\u30a8\u30f3\u30bf\u30fc\u5c71\u672c\u5927\u306e\u30d6\u30ed\u30b0","description":"\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306e\u7bc4\u56f2\u4ed8\u3051By default, Guice creates a new object for every injection. We refer to this as having \"no scope.\" You can specify a scope when you configure a binding. For example, to inject the same instance every time:\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Guice\u306f\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u305f\u3073\u306b\u65b0\u3057\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u300cNo Scope\u300d\u306e\u72b6\u614b\u3067\u3042\u308b\u3068\u8a00\u3048\u307e\u3059\u3002\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306b\u3001\u2026","version":"1.0","published":"2007-03-19 00:00:11"}