{"title":" PrivateModule","blog_title":"\u3046\u306a\u306e\u65e5\u8a18","published":"2009-05-27 21:05:08","url":"https://unageanu.hatenablog.com/entry/20090527/1243425908","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20090527%2F1243425908\" title=\" PrivateModule - \u3046\u306a\u306e\u65e5\u8a18\" 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","author_url":"https://blog.hatena.ne.jp/unageanu/","provider_url":"https://hatena.blog","width":"100%","author_name":"unageanu","image_url":null,"provider_name":"Hatena Blog","version":"1.0","description":"PrivateModule\u3092\u4f7f\u3046\u3068\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u767b\u9332\u3055\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u516c\u958b/\u975e\u516c\u958b\u3092\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u975e\u516c\u958b\u3002 \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u767b\u9332\u3055\u308c\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u3067\u306e\u307f\u5229\u7528\u53ef\u80fd(\u4ed6\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306bInject\u53ef\u80fd)\u3067\u3059\u3002 \u5916\u90e8\u304b\u3089\u53d6\u5f97\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002 \u516c\u958b\u3059\u308b\u306b\u306f\u660e\u793a\u7684\u306bexpose\u3057\u307e\u3059\u3002 Injector injector = Guice.createInjector( new PrivateModule(){ // \u2191PrivateModule\u3092\u6d3e\u751f protected void configure() { // \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u767b\u9332 // \u2192 \u767b\u9332\u3057\u305f\u3060\u3051\u3067\u306f\u975e\u516c\u2026","blog_url":"https://unageanu.hatenablog.com/","categories":["Java","Guice"]}