â
ãããµã-VisualBasic, Delphiãã10åã§Java+Flex2ã«ãã¼ãã£ã³ã°
http://d.hatena.ne.jp/higayasuo/20070118#1169099987
1ãã¼ã¸è¤æ°ãã³ãã¬ã¼ã
æºå¸¯ç¨ã®ã³ã³ãã³ããéçºããã¨ãã«ï½¤ãã³ã¢ãAUãã½ãããã³ã¯ç¨ã«ãã³ãã¬ã¼ãã¯ç°ãªããã©ï½¤ãµã¼ããµã¤ãã®ãã¸ãã¯ã¯ãã£ããã¨ãããã¨ãããã§ãããããããªãã¼ãºã«å¿ããã®ã、1ãã¼ã¸è¤æ°ãã³ãã¬ã¼ãæ©è½ã§ãã
ä¾ãã°ï½¤HogePage.javaããã£ãå ´åã«ï½¤hoge_i.html, hoge_a.html, hoge_s.htmlã®3ã¤ã®ãã³ãã¬ã¼ããç¨æãã¦ããã¾ããHogePage.javaã«æ¬¡ã®ãããªdoã¡ã½ããããã£ãå ´å、次ã«ã©ã®ãã¼ã¸ã«é·ç§»ããã®ã§ããããã
hoge_i.htmlã§ãµããããããå ´åã¯ï½¤hoge2_i.htmlã«é·ç§»ãã¾ããhoge2_i.htmlããªããã°ï½¤hoge2.htmlã«é·ç§»ãã¾ãã
public Class doAction() {
return Hoge2Page.class;
}
åæ§ã«hoge_s.htmlã§ãµããããããå ´åã¯ï½¤hoge2_s.htmlã«é·ç§»ãã¾ããhoge2_s.htmlããªããã°ï½¤hoge2.htmlã«é·ç§»ãã¾ãã
DIãAOPãå°å ¥ããããã«ã©ããã£ã¦é ã®åºããããã説å¾ããã
ç§ã®çµé¨ã ã¨ï½¤ã¾ãAOPã®è©±ã¯ç¡çã宣è¨çãã©ã³ã¶ã¯ã·ã§ã³ãã§ãããªãã¦ï½¤ãããã«ã¯é£ãããã
DIãå°å
¥ãããã¨ã§ï½¤POJOã§ççµåã«ããã¨ãã¹ãããããããªãã¾ãããããããã¦ãç¡çããã¹ããæ¸ãããã®å·¥æ°ããããããããªãã®ã¨å¿é
ãããã®ããã¡ã
ãããã§ããç解ã§ãããããªå·¥æ°åæ¸ã®ã¡ãªãããè¦ããªãã¨èª¬å¾ããã®ã¯é£ãããããããç¶æ³ã«ãªãã®ã¯ï½¤Seasar2ãæåã«éçºããã¨ãããããã£ã¦ãã¾ããã
ãã®ãããªé£ããç¶æ³ã解決ããããã«éçºãããã®ãS2Daoã§ããS2Daoã¯æåããSeasar2ãæ®åãããããã®ãã©ã¼ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦ãã¶ã¤ã³ããã¦ãã¾ããåãããããå·¥æ°åæ¸ã§ãããã¨ã示ãããã«ã¤ã³ã¿ã¼ãã§ã¼ã¹ãæ¸ãã ãã§è¯ãã¨ããä»æ§ã«ãªã£ã¦ããã®ã§ããã¤ã³ã¿ã¼ãã§ã¼ã¹ãæ¸ãã ãã§å®è£
ã³ã¼ããæ¸ããªãã¦ãè¯ãã¨ãããã¨ã«ãªãã°ï½¤é ã®å
ããããã§ãå·¥æ°åæ¸ã®ã¡ãªãããç解ãããã¨ãã§ãã¾ãã
ã客æ§ã«ãã£ã¦ã¯æåããDIãAOPã®ã¡ãªãããç解ãã¦ããã ãããã¨ãããã¾ãã、å°å
¥ã«è¸ã¿åãããã«ã¯å·¥æ°åæ¸å¹æããªãã¨é£ããã
ä¸è±æ±äº¬UFJã®æ¡ä»¶ã«ã¤ãã¦ãS2Daoã®å·¥æ°åæ¸å¹æãåãä¸ãããã¦ãã¾ãã、ãã¯ãæãéè¦è¦ãããã¨ãããã¨ã§ãããã
http://journal.mycom.co.jp/articles/2006/10/03/ufjis/
Seasar2(Churaãã¡ããªã¼)ã§ã¯ãããã«Teedaã¨Doltengã«ããã³ã¼ãã®èªåçæã¨ãã£ãåãããããå·¥æ°åæ¸å¹æãã¿ãã¦ãã¾ããSeasar2èªèº«ãHOT deployã«ãã£ã¦DIContainerèªèº«ãçç£æ§åä¸ã«å½¹ç«ã¤ãã¨ã示ãã¦ãã¾ãã
å·¥æ°åæ¸å¹æãããããããè¦ããã¨ãããã¨ã¯ãä»å¾ããã«éè¦ã«ãªã£ã¦ããã®ã§ã¯ãªããã¨æãã¾ãã
DIèªèº«ã¯ï½¤é常ã«å°å³ãªæè¡ã§ãã、HOT deployã«ãã£ã¦ããã¸ã¥ã¢ã«çã«ã楽ããããã®ã«ãªã£ãã¨æãã¾ããå°å³ãªã®ãæªãã¨ã¯æãã¾ããã、ãã¸ã¥ã¢ã«çã«åãããããã»ãããç解ãã¦ãããã確çã¯é«ããªãããããªããã¨æãã¾ãã
Gridã®è¶ éåæå¦ç
ç¾å¨(trunk)ã®Gridã¯ã50件以ä¸ã®ãã¼ã¿ãããå ´å、ãµã¼ãä¸ã§åæçã«(Rendererã§)HTMLãçµã¿ç«ã¦ãå¾ï½¤éåæ(Ajax)ã§HTMLãã¯ã©ã¤ã¢ã³ãå´ã«åãè¾¼ãã§ãã¾ãã
大谷ãããéåæã§åã£ã¦ããå¦çã50件ãã¤ç´°åãã«ã¨ã£ã¦ããå¦çãå
¥ããã®ã§ï½¤çµæ§æ»ããã«è¡¨ç¤ºã§ããããã«ãªãã¾ããããããããµã¼ãä¸ã§åæçã«å¦çãã¦ããé¨åã®æéã¯ï½¤ç¾å¨ã§ããã©ã¦ã¶ãåºã¾ã£ã¦ãã¾ãã¾ãã
次ã®å¯¾å¿ã¨ãã¦ã¯ï½¤ãµã¼ãä¸ã§HTMLãçµã¿ç«ã¦ãé¨åãå®å
¨ã«éåæå¦çã«ãããã¨æãã¾ããããã«ãã£ã¦ï½¤ä½ä¸ä»¶ã対象ã§ããæåã®50件åãå
ã表示ãã、ã¦ã¼ã¶ã¯ãã©ã¦ã¶ã触ããã¨ãã§ããããã«ãªã、ãã®å¾ãéåæã§å¾ã
ã«Gridä¸ã®ãã¼ã¿ãå¢ãã¦ãããã¨ã«ãªãã¾ãã
HTMLããªã³ããã³ãã«çµã¿ç«ã¦ï½¤ã»ãã·ã§ã³ã«ç½®ããªãã®ã§ï½¤ã¡ã¢ãªã®ç¯ç´ã«ããªãã¾ãã
Gridã«3000件以ä¸ã®ãã¼ã¿ãç¬æã«è¡¨ç¤ºãããã¨ããç¡è¶(?)ãªè¦æ±ãããã§å¯¾å¿ã§ããããªã