DIã³ã³ããã¯ï¼ãDIï¼Dependency Injectionï¼ä¾åæ§ã®æ³¨å ¥ï¼ãã¨å¼ã¶ãã¶ã¤ã³ãã¿ã¼ã³ã«åºã¥ãã¦ä½ãããã³ã³ãã¼ãã³ã群ãéä¸ç®¡çããããã®ã½ããã¦ã¨ã¢ã§ãã DIã¯ï¼ã³ã³ãã¼ãã³ãï¼ã¯ã©ã¹ï¼éã®ä¾åé¢ä¿ãã½ã¼ã¹ã³ã¼ãããåãé¤ããã¨ã§ï¼ããã°ã©ã ã®å®è¡æã¾ã§ã³ã³ãã¼ãã³ãå士ãä¾åé¢ä¿ãæããªãããã«ãããã¶ã¤ã³ãã¿ã¼ã³ã§ãã ä¾ãã°ï¼ããã¯ã©ã¹Aã®ä¸ã§å¥ã®ã¯ã©ã¹Bã®ã¤ã³ã¹ã¿ã³ã¹ãçæãã¦å©ç¨ãã¦ããã¨ãï¼Aã¯Bã«å¼·ãä¾åãã¦ãã¾ã£ã¦ãã¾ããã¤ã¾ãï¼Bãå¥ã®ã¯ã©ã¹ã«å·®ãæ¿ããã¨ããªã©ã«ã¯Aãå¤æ´ããªããã°ãªãã¾ããããã®ãããªä¾åé¢ä¿ã¯ï¼Aã¨Bãå¥ã®äººãä½ã£ã¦ããå ´åãªã©ã«ç¹ã«å°ãã¾ãã ããããä¾åæ§ãã¯ã©ã¹ããåãé¤ãã®ãDIãã¿ã¼ã³ã§ããBã¸ã®ä¾åæ§ãAããæé¤ããã«ã¯ï¼ã¾ãBã®æ©è½ãæ½è±¡åããã¤ã³ã¿ãã§ã¼ã¹Iãå®ç¾©ãï¼Iãå®è£ ããã¯ã©ã¹ã¨ãã¦Bãä½ãã¾ãã Bã®
{{#tags}}- {{label}}
{{/tags}}