2é±éã»ã©åã«ãæ¥é½SAStruts+Seasar2+S2JDBCã®ç¾å ´ã®ãã«ãã«å¼ã°ãã¾ããã ã¨ããããããããSeasar2ã¯ãããDIã³ã³ããèªä½ãã£ããã¨ãªãã¦ã大æ¥ãã§åå¼·ããç¾½ç®ã«ãªãã¾ãã¦ã ä»ãåå¼·ããªããä½æ¥ãã¦ãããã§ããããããªä¸ãµã¨ããããSlim3ã§ãDIã£ã½ãä½ããã®ã§ã¯â¦ï¼ãã¨ããèããæµ®ããã§ãã¾ããã æãç«ã£ããæ©éæ¤è¨¼ï¼ ã¾ãã¯ãDI(Dependency Injection)ã«ã¤ãã¦ã®ãããã ä¾ãã°ã¨ããã¡ã½ããã public int getCount(){ Foo foo = new Foo(); Bar bar = new Bar(); return foo.getCount() + bar.getCount(); } ã¿ããã«ä½ãã¨ãFoo#getCount()ã¯Datastoreã«ã¢ã¯ã»ã¹ãã¦ãã¦ãBar#getCount()ã¯URLã
{{#tags}}- {{label}}
{{/tags}}