æ¥åç³»ã®ã¯ã©ã¹ã§ã¤ã³ã¿ãã§ã¤ã¹ã®å®è£ ã¯ã©ã¹åã«ãã¤ã³ã¿ãã§ã¤ã¹å+Implãã£ã¦ååãã¤ããã®ã¯ããµãããã
å®è£
ã«ç¹æ§ãããããã¤ã³ã¿ãã§ã¤ã¹ã¨å®è£
ãåé¢ããããã§*1
ã¤ã³ã¿ãã§ã¤ã¹ã«å¯¾ãã¦å®è£
ã1ã¯ã©ã¹ã«ãªãå ´åã«ã¯ã¤ã³ã¿ãã§ã¤ã¹ã¨å®è£
ãåé¢ããå¿
è¦ãç¡ãã¨ãã¯ã¯æããã
追è¨ï¼ç¹å®ã®DIã³ã³ããã®è©±ã¯ãã®ã¨ã³ããªã¨ç¡é¢ä¿ã§ãã
追追è¨ï¼ä»æã§ã®è°è«ã®å»¶é·ã§ãã¯ã®èããããã«æ¸ããã ããªã®ã§ãç¹å®ã®DIã³ã³ããã¨ãç¹å®ã®è¨è¨ææ³ã¨ãã¯ä½ãé¢ä¿ãªãï¼ã¨ãããæèããã¦ããªãã£ãï¼è©±ã§ããã©ã
ä¸ã«ãä¾å¤ã¨ãã¦æ¸ãããã³ã¡ã³ãã«ãæ¸ãããã ãã©ããã¨ãã°ãã©ã³ã¶ã¯ã·ã§ã³èªåå¶å¾¡ã¨ãã§Facadeã«å¯¾ãã¦Aspectãããããå ´åã®è¨è¨ææ³ã®ä¸ã¤ã¨ãã¦ã¤ã³ã¿ãã§ã¤ã¹ã¨å®è£
ãå¼·å¶çã«åé¢ï¼ã¤ã³ã¿ãã§ã¤ã¹ã¨å®è£
ã1対1)ãã¦Dynamic Proxyã使ãè¨è¨ææ³ãç¨ãã¦ãæ§ããªãã®ã§ã¯ãªãã§ããããï¼æè¿ã®ããã¸ã§ã¯ãã§DIã³ã³ããã¯ä½¿ã£ã¦ãªããã©Hibernateã®ã»ãã·ã§ã³ã¨ãã®ç®¡çãFacadeã§ããããªãã£ãã®ã§Facadeã«ã¤ãã¦ã¯ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¨å®è£
ã®å¼·å¶åé¢(1対1)ãæ¡ç¨ãã¦ãããã¨ãããã¾ãããããã追è¨ããã®ãç²ãã¦ããã®ã§ãã®è¾ºã§ã
追追追è¨ï¼èªå®
ã«å¸°ã£ã¦ããã®ã§å®å¿ãã¦ã³ã¡ã³ãã§ãããªã
>>918 å¦ä¸è¡ã¨ã決ãä»ãã¦æ¸ãã®ã¯èªç±ã§ããå¿å¤ã§ããç§ã¯æªããã®ã¯å
·ä½çã«æªãã¨æ¸ãã¿ã¤ãã®äººéã§ãããç§ã®èªèãã¦ããªããã®è¨è¨ææ³ã¨ããããªã³ã¯é ããªããã¦ç§ã«ææãã¦ããã¾ãããï¼ãããæ°ã«å
¥ããªããã°ãã®æ¥è¨ã§é æ
®ãªãå©ãã¾ããã
>>922 EasyMockã使ãã°ã¤ã³ã¿ãã§ã¤ã¹ãç¨ããªãã¦ãMockã使ããã¨ã¯å¯è½ã§ããã§ãããMockã使ãããã¤ã³ã¿ãã§ã¤ã¹æ½åºã¨è¨ãè«çã¯æç«ããªãã¨æãã¾ããå¥ã®è¦³ç¹ãããã®ã§ããã°æ示ãã¦ãã ããã
>>925 ç§ã¯ãæ¯è¼çå®å
¨ã«æ°ããã³ã¼ãã¨å·®ãæ¿ãããã¨è¨ãå¯è½æ§ãèããæéãç¡é§ã ã¨æã£ã¦ãã¾ããããããè¨ãå®è£
ãè¦ããããIDEã§ãªãã¡ã¯ã¿ãªã³ã°ãè¡ãã¤ã³ã¿ãã§ã¤ã¹ãæ½åºãã¦ãã対å¿ããã°ããã¨æãã¾ããã¤ã³ã¹ã¿ã³ã¹çæã®ã³ã¼ããè¤æ°ç®æã«è¦ããã¦å¯¾å¿ãå°ãã¨è¨ããã¨ã§ããã°ã2ç®æã«ã¤ã³ã¹ã¿ã³ã¹çæã®ã³ã¼ããæ£ãã°ã£ã段éã§ãªãã¡ã¯ã¿ãªã³ã°ã§Factoryãã¿ã¼ã³ãå°å
¥ã§ãã¦ããã°è¯ãã ãã®è©±ã ã¨æãã¾ããæ¯è¼çå®å
¨ã¨è¨ãæå³ãç§ã¨ããªãã§ç°ãªã£ã¦ããããããã¾ãããã
>>932 誤èªãããã¯ç§ãæ¸ãããã¨ã¨ã¯éã話ã ã¨æãã¾ãããç§ã¯è¤é度ãä¸ããããå«ã¨ã¯ä¸è¨ãæ¸ãã¦ãã¾ããããããããã¨Saisseããã®æ¥è¨ã®è©±ã§ããããï¼ï¼ããããã§ããã°ãã®ã¬ã¹ã¯ã¹ã«ã¼ãã¦ãã ããã¾ãï¼
追追追è¨ï¼è¿½è¨ããã¨ã³ããªã¯ãã®è¾º
*1:ä¾å¤ã¨ãã¦ã¯Dynamic Proxyãç¨ãããããåé¢ããã±ã¼ã¹ã¯ããã¨æã