DIã³ã³ããã使ãæã«ã©ã®ã¤ã³ã¸ã§ã¯ã·ã§ã³ã使ããã£ã¦è©±ã§ãã ãã¶ã誰ããã©ããã§åããããªãã¨ãæ¸ãã¦ããã ããããã©ãæ°ã«ããæ¸ããã ãä»ã®èª°ããæ¸ãã¦ããããªãã¦ã®ãæ¸ããªãçç±ã«ãã¦ãã¨ä½ãæ¸ããªããªããã ã³ã³ãã DIã³ã³ããã®ãã¨ã ã³ã³ãã管ç ã¤ã³ã¹ã¿ã³ã¹ã®ã©ã¤ããµã¤ã¯ã«ãã³ã³ããã管çãã¦ãããã¨ãéã«è¨ãã°ã使ãå´ã§ new ããªãã£ã¦ãã¨ã ã¤ã³ã¸ã§ã¯ã·ã§ã³ Dependency Injectionã®ãã¨ã Short Answer ã³ã³ã¹ãã©ã¯ã¿ã¤ã³ã¸ã§ã¯ã·ã§ã³ã使ãã¾ãããã使ãåããªãã¦ããã§ãã 3種é¡ã®ã¤ã³ã¸ã§ã¯ã·ã§ã³ ã¤ã³ã¸ã§ã¯ã·ã§ã³ã«ã¯3種é¡ããã¾ãããä»ãã£ã¦ãç¥ããªãã ãã£ã¼ã«ãã¤ã³ã¸ã§ã¯ã·ã§ã³ ã»ãã¿ã¼ã¤ã³ã¸ã§ã¯ã·ã§ã³ ã³ã³ã¹ãã©ã¯ã¿ã¤ã³ã¸ã§ã¯ã·ã§ã³ ãã£ã¼ã«ãã¤ã³ã¸ã§ã¯ã·ã§ã³ ä¸çªããè¦ãããªã class Hoge { @Inject
{{#tags}}- {{label}}
{{/tags}}