ãªã³ããã³ããããã¤ã®ããã
Javaã§Annotationãã¤ããã¯ã©ã¹ããã£ãããããã«å¯¾ãã¦å¦çãããå ´åã¯ãSeasar2ã®ã³ã³ãã¼ãã³ãèªåç»é²ã§ä½¿ã£ã¦ããããã«ããã¡ã¤ã«ã·ã¹ãã ã¾ã㯠Jar ãã¡ã¤ã«ãå ¨èµ°æ»ãã¦ã¯ã©ã¹ãã¼ãããæ¹æ³ãããã¾ãã
ãã¡ã¤ã«ã·ã¹ãã ã¾ã㯠Jar ãã¡ã¤ã«ãå ¨èµ°æ»ãã¦ã¯ã©ã¹ãã¼ããã¦ãã ããããçµè«ã§ãã
Seasar ã ã£ããã
org.seasar.framework.util.ClassTraversal
ãèªãã¹ãã
ã§ããããã¯ãSeasar2.3æ代(3å¹´å)ã®è©±ã§ãæè¡ã¨ãã¦ã¯ã¡ãã£ã¨å¤ãã
HOT deployãªã©ã¨çµã¿åãããã¨ããªã¯ã¨ã¹ãã®ãã³ã«å
¨ã³ã³ãã¼ãã³ãããããã¤ããå¿
è¦ãããã®ã§ãã³ã³ãã¼ãã³ãã®æ°ãå¢ããã¨å®ç¨çã«ã¯ä½¿ããªãã®ã§ãã
ããã§ãèãåºããã®ããSeasar2ã®ONDEMAND deployãã³ã³ãã¼ãã³ãã®å®ç¾©ãè¦ã«è¡ã£ã¦ãããã°ããã使ãããªããã°ããã®å ´ã§ãããã¤ããæ¹æ³ã
ONDEMAND deployã ã¨ããªã¯ã¨ã¹ãã§å¿
è¦ãªã³ã³ãã¼ãã³ããããããã¤ãããªãã®ã§ãã³ã³ãã¼ãã³ãã®æ°ããããå¢ãã¦ãå¹³æ°ã§ãã
ONDEMAND deployãç解ããã«ã¯ããã¾ãªãSlim3 Containerãè¦ãã®ãä¸çªç°¡åã§ãã
ãã¿ãã°ããã£ã¨ç解ã§ããã§ãããã4ã¤ã®ã¯ã©ã¹ãè¦ãã ããªã®ã§ç°¡åã
PrototypeBeanFactoryã§Disposableãå®è£
ãã¦ãã¾ãããDisposableã¯ãHOT deployãå®ç¾ããããã®ãã¼ã¯ã©ã¹ã§ããDisposable#disponse()ã¯ãHOT deployã®ã¨ãã«ã¯ããªã¯ã¨ã¹ãã®æå¾ãCOOL deploy(HOT deployãããªããã®)ã®ã¨ãã«ã¯ãã¢ããªã±ã¼ã·ã§ã³ãçµäºããã¿ã¤ãã³ã°ã§å¼ã³åºããã¾ãã
ãã®disposeã¡ã½ããã§ããã£ãã·ã¥ãã¦ããã¡ã¿ãã¼ã¿ãéæ¾ããããã«ãã¦ãããã°ãHOT deployã«å¯¾å¿ã§ããã ãã§ãªããCOOL deployã®ã¨ãã¯ããã£ãã·ã¥ãå©ãã®ã§ãããã©ã¼ãã³ã¹ãå£åãã¾ããã
HOT deployã¨COOL deployããã¾ã両ç«ãããããã«ã¯ããããªãã®ãã¦ãã¦ãå¿
è¦ã§ããSeasar2ã®2å¹´éã®ãã¦ãã¦ã®èç©ãå¦ã°ãªãæã¯ãªãã§ãããã
æ代ã¯ãONDEMAND deployã§ããã
æ®éã«Javaã§éçºããã¨ãã«åºã¦ããæè¡çãªèª²é¡ã¯ãSeasar2ã§ãã»ã¨ãã©è§£æ±ºã§ãã¦ããã¨æãã®ã§ãããããªããã¨ãããã°ãããã¦ãã ããããããã§ãæãã¾ããã