ååã®è¨äºã§ç´¹ä»ããã®ã¯ãGoogle Guiceã®DIæ©è½ã®ãã¡ã®ä¸ã¤ãLinked Bindingsã ãã§ããããã®è¨äºã¯ãã®ç¶ãã§ãã ãµã³ãã«ã¯Scalaã§æ¸ãã¾ããããä¾ã«ãã£ã¦Scalaã£ã½ãã³ã¼ããåºã¦ããããã§ã¯ãªãã§ããâ¦â¦Guiceãã©ã使ãã°Scalaã¨ããããé£æºã§ããããã«ãªããã¯ãã¾ã ããåãã£ã¦ãã¾ãã1ã ãã¦ãGuiceã¯ããã¡ãã£ã¨è²ã ãªæ¹æ³ã§DIãã§ããã®ã§ãããã«ã¤ãã¦ã調ã¹ã¦ç´¹ä»ãã¾ãã 以ä¸ã§ã¯ä¾ç¤ºã®ããã«ãååã使ç¨ããServiceã¨ãã®å®è£ ã¯ã©ã¹2ã¤ã使ãã¾ãã trait Service { def doSomething(): Unit } class FakeService extends Service { def doSomething() { println("FakeService") } } class RealServic
{{#tags}}- {{label}}
{{/tags}}