锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品成人午夜在线观看,亚洲第一成年免费网站,337p日本欧洲亚洲大胆色噜噜http://m.tkk7.com/lilan1983/category/1543.htmlBeyond Technology!!!zh-cnFri, 02 Mar 2007 06:54:23 GMTFri, 02 Mar 2007 06:54:23 GMT60瀹炵幇鎷︽埅鍣?/title><link>http://m.tkk7.com/lilan1983/archive/2005/12/28/25771.html</link><dc:creator>鏉庡矚</dc:creator><author>鏉庡矚</author><pubDate>Wed, 28 Dec 2005 11:02:00 GMT</pubDate><guid>http://m.tkk7.com/lilan1983/archive/2005/12/28/25771.html</guid><wfw:comment>http://m.tkk7.com/lilan1983/comments/25771.html</wfw:comment><comments>http://m.tkk7.com/lilan1983/archive/2005/12/28/25771.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/lilan1983/comments/commentRss/25771.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lilan1983/services/trackbacks/25771.html</trackback:ping><description><![CDATA[     鎽樿: 鑳屾櫙錛?鎷︽埅鍣ㄦ槸鐜板湪寰堝紼嬪簭蹇呴』鐨勪竴涓笢瑗褲傛瘮濡傝鍦ㄦ煇涓柟娉曠殑鍓嶅悗鍋氫簺澶勭悊錛屽湪涓浜涚壒瀹氱殑鎯呭喌涓嬪彲鑳戒細瀵艱嚧澶ч噺鐨勯噸澶嶄唬鐮併傝屽亣濡傛垜浠嫢鏈変簡綾諱技鎷︽埅鍣ㄤ竴鏍風殑涓滆タ錛岄偅鎴戜滑灝卞彲浠ヤ換鎰忓湪鑷繁甯屾湜鐨勬柟娉曠殑鎵ц鍓嶅悗鍋氭垜浠嚜宸辯殑澶勭悊錛屾瘮濡傛棩蹇楋紝鍙栧緱鍙傛暟鎴栬呮槸浜嬪姟絳夈?  瀹炵幇錛?1錛庨鍏堝畾涔変竴涓笟鍔℃帴鍙?  1/** *//** 3 *&nbs...  <a href='http://m.tkk7.com/lilan1983/archive/2005/12/28/25771.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/lilan1983/aggbug/25771.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lilan1983/" target="_blank">鏉庡矚</a> 2005-12-28 19:02 <a href="http://m.tkk7.com/lilan1983/archive/2005/12/28/25771.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring鍜學ebwork緇撳悎鐨勬柟寮?/title><link>http://m.tkk7.com/lilan1983/archive/2005/11/23/21119.html</link><dc:creator>鏉庡矚</dc:creator><author>鏉庡矚</author><pubDate>Wed, 23 Nov 2005 05:52:00 GMT</pubDate><guid>http://m.tkk7.com/lilan1983/archive/2005/11/23/21119.html</guid><wfw:comment>http://m.tkk7.com/lilan1983/comments/21119.html</wfw:comment><comments>http://m.tkk7.com/lilan1983/archive/2005/11/23/21119.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/lilan1983/comments/commentRss/21119.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lilan1983/services/trackbacks/21119.html</trackback:ping><description><![CDATA[<P><FONT size=2>鍓嶄袱縐嶆柟寮弚ebwork鐨剋iki閲屾湁錛屽氨涓嶅璇翠簡,<A >鐐硅繖閲屽彲浠ユ煡鐪?/A>銆?BR>鑰屼互涓嬬殑緇欏嚭鐨勬濊礬鏄痺ebwork mail list鐨勮璁虹殑涓縐嶆柟妗堬紝搴旇鏄渶濂界殑涓縐嶆柟妗堛?BR><BR>浠g爜1錛?/FONT></P> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT size=2><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_505_2496_Open_Image onclick="this.style.display='none'; Codehighlighter1_505_2496_Open_Text.style.display='none'; Codehighlighter1_505_2496_Closed_Image.style.display='inline'; Codehighlighter1_505_2496_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_505_2496_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_505_2496_Closed_Text.style.display='none'; Codehighlighter1_505_2496_Open_Image.style.display='inline'; Codehighlighter1_505_2496_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> SpringContainer </SPAN><SPAN style="COLOR: #0000ff">implements</SPAN><SPAN style="COLOR: #000000"> Container </SPAN><SPAN id=Codehighlighter1_505_2496_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_505_2496_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">private</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000"> ApplicationContext applicationContext;<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_617_726_Open_Image onclick="this.style.display='none'; Codehighlighter1_617_726_Open_Text.style.display='none'; Codehighlighter1_617_726_Closed_Image.style.display='inline'; Codehighlighter1_617_726_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_617_726_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_617_726_Closed_Text.style.display='none'; Codehighlighter1_617_726_Open_Image.style.display='inline'; Codehighlighter1_617_726_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> SpringContainer(ServletContext servletContext) </SPAN><SPAN id=Codehighlighter1_617_726_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_617_726_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.applicationContext </SPAN><SPAN style="COLOR: #000000">=</SPAN></FONT><SPAN style="COLOR: #000000"><FONT size=2> WebApplicationContextUtils.getWebApplicationContext(servletContext);<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_795_855_Open_Image onclick="this.style.display='none'; Codehighlighter1_795_855_Open_Text.style.display='none'; Codehighlighter1_795_855_Closed_Image.style.display='inline'; Codehighlighter1_795_855_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_795_855_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_795_855_Closed_Text.style.display='none'; Codehighlighter1_795_855_Open_Image.style.display='inline'; Codehighlighter1_795_855_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> SpringContainer(ApplicationContext applicationContext) </SPAN><SPAN id=Codehighlighter1_795_855_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_795_855_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">.applicationContext </SPAN><SPAN style="COLOR: #000000">=</SPAN></FONT><SPAN style="COLOR: #000000"><FONT size=2> applicationContext;<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_862_1012_Open_Image onclick="this.style.display='none'; Codehighlighter1_862_1012_Open_Text.style.display='none'; Codehighlighter1_862_1012_Closed_Image.style.display='inline'; Codehighlighter1_862_1012_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_862_1012_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_862_1012_Closed_Text.style.display='none'; Codehighlighter1_862_1012_Open_Image.style.display='inline'; Codehighlighter1_862_1012_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><SPAN id=Codehighlighter1_862_1012_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><FONT size=2>/** */</FONT></SPAN><SPAN id=Codehighlighter1_862_1012_Open_Text><SPAN style="COLOR: #008000"><FONT size=2>/**</FONT></SPAN><SPAN style="COLOR: #008000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>     * </FONT></SPAN><SPAN style="COLOR: #808080"><FONT size=2>@param</FONT></SPAN><FONT size=2><SPAN style="COLOR: #008000"> key<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>     *            component class type or component name<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>     * </SPAN><SPAN style="COLOR: #808080">@return</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080">@throws</SPAN></FONT><SPAN style="COLOR: #008000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>     *         ComponentNotFoundException<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>     </FONT></SPAN><SPAN style="COLOR: #008000"><FONT size=2>*/</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG id=Codehighlighter1_1091_2060_Open_Image onclick="this.style.display='none'; Codehighlighter1_1091_2060_Open_Text.style.display='none'; Codehighlighter1_1091_2060_Closed_Image.style.display='inline'; Codehighlighter1_1091_2060_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1091_2060_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1091_2060_Closed_Text.style.display='none'; Codehighlighter1_1091_2060_Open_Image.style.display='inline'; Codehighlighter1_1091_2060_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> Object getComponent(Object key) </SPAN><SPAN style="COLOR: #0000ff">throws</SPAN><SPAN style="COLOR: #000000"> ComponentNotFoundException </SPAN><SPAN id=Codehighlighter1_1091_2060_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_1091_2060_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (applicationContext </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">throw</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> IllegalStateException(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Spring Application context has not been set</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000">);<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (key </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">throw</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> ComponentNotFoundException(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">The component key can not be null</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000">);<BR><IMG id=Codehighlighter1_1371_1995_Open_Image onclick="this.style.display='none'; Codehighlighter1_1371_1995_Open_Text.style.display='none'; Codehighlighter1_1371_1995_Closed_Image.style.display='inline'; Codehighlighter1_1371_1995_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_1371_1995_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1371_1995_Closed_Text.style.display='none'; Codehighlighter1_1371_1995_Open_Image.style.display='inline'; Codehighlighter1_1371_1995_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (key </SPAN><SPAN style="COLOR: #0000ff">instanceof</SPAN><SPAN style="COLOR: #000000"> Class) </SPAN><SPAN id=Codehighlighter1_1371_1995_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_1371_1995_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>            Map beans </SPAN><SPAN style="COLOR: #000000">=</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000"> applicationContext.getBeansOfType((Class) key);<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (beans </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">null</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>                </SPAN><SPAN style="COLOR: #0000ff">throw</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> ComponentNotFoundException(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">The container is unable to resolve single instance of </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000"> ((Class) key).getName()<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>                        </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, none instances found</SPAN><SPAN style="COLOR: #000000">"</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000">);<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>            </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> (beans.size() </SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">||</SPAN><SPAN style="COLOR: #000000"> beans.size() </SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">1</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>                </SPAN><SPAN style="COLOR: #0000ff">throw</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000"> ComponentNotFoundException(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">The container is unable to resolve single instance of </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000"> ((Class) key).getName()<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>                        </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, number of instances found was: </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN></FONT><FONT size=2><SPAN style="COLOR: #000000"> beans.size());<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>            key </SPAN><SPAN style="COLOR: #000000">=</SPAN></FONT><SPAN style="COLOR: #000000"><FONT size=2> beans.keySet().iterator().next();<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </FONT></SPAN><SPAN style="COLOR: #0000ff"><FONT size=2>return</FONT></SPAN><SPAN style="COLOR: #000000"><FONT size=2> applicationContext.getBean(key.toString());<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2088_2180_Open_Image onclick="this.style.display='none'; Codehighlighter1_2088_2180_Open_Text.style.display='none'; Codehighlighter1_2088_2180_Closed_Image.style.display='inline'; Codehighlighter1_2088_2180_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2088_2180_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2088_2180_Closed_Text.style.display='none'; Codehighlighter1_2088_2180_Open_Image.style.display='inline'; Codehighlighter1_2088_2180_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> reload() </SPAN><SPAN id=Codehighlighter1_2088_2180_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_2088_2180_Open_Text><SPAN style="COLOR: #000000"><FONT size=2>{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        close();<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        ((AbstractApplicationContext) applicationContext).refresh();<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2230_2393_Open_Image onclick="this.style.display='none'; Codehighlighter1_2230_2393_Open_Text.style.display='none'; Codehighlighter1_2230_2393_Closed_Image.style.display='inline'; Codehighlighter1_2230_2393_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2230_2393_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2230_2393_Closed_Text.style.display='none'; Codehighlighter1_2230_2393_Open_Image.style.display='inline'; Codehighlighter1_2230_2393_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> autowireComponent(Object bean) </SPAN><SPAN id=Codehighlighter1_2230_2393_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_2230_2393_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        ((AbstractApplicationContext) applicationContext).getBeanFactory().autowireBeanProperties(bean, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, </SPAN><SPAN style="COLOR: #0000ff">false</SPAN></FONT><SPAN style="COLOR: #000000"><FONT size=2>);<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_2420_2493_Open_Image onclick="this.style.display='none'; Codehighlighter1_2420_2493_Open_Text.style.display='none'; Codehighlighter1_2420_2493_Closed_Image.style.display='inline'; Codehighlighter1_2420_2493_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_2420_2493_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_2420_2493_Closed_Text.style.display='none'; Codehighlighter1_2420_2493_Open_Image.style.display='inline'; Codehighlighter1_2420_2493_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> close() </SPAN><SPAN id=Codehighlighter1_2420_2493_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_2420_2493_Open_Text><SPAN style="COLOR: #000000"><FONT size=2>{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        ((AbstractApplicationContext) applicationContext).close();<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</FONT></SPAN></SPAN></DIV><BR><FONT size=2>浠g爜2錛?BR></FONT> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT size=2><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_206_574_Open_Image onclick="this.style.display='none'; Codehighlighter1_206_574_Open_Text.style.display='none'; Codehighlighter1_206_574_Closed_Image.style.display='inline'; Codehighlighter1_206_574_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_206_574_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_206_574_Closed_Text.style.display='none'; Codehighlighter1_206_574_Open_Image.style.display='inline'; Codehighlighter1_206_574_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> ComponentAutowireInterceptor </SPAN><SPAN style="COLOR: #0000ff">implements</SPAN><SPAN style="COLOR: #000000"> Interceptor </SPAN><SPAN id=Codehighlighter1_206_574_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_206_574_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_236_285_Open_Image onclick="this.style.display='none'; Codehighlighter1_236_285_Open_Text.style.display='none'; Codehighlighter1_236_285_Closed_Image.style.display='inline'; Codehighlighter1_236_285_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_236_285_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_236_285_Closed_Text.style.display='none'; Codehighlighter1_236_285_Open_Image.style.display='inline'; Codehighlighter1_236_285_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> destroy() </SPAN><SPAN id=Codehighlighter1_236_285_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_236_285_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> TODO Auto-generated method stub</SPAN></FONT><SPAN style="COLOR: #008000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></FONT></SPAN><SPAN style="COLOR: #000000"><FONT size=2>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_311_360_Open_Image onclick="this.style.display='none'; Codehighlighter1_311_360_Open_Text.style.display='none'; Codehighlighter1_311_360_Closed_Image.style.display='inline'; Codehighlighter1_311_360_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_311_360_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_311_360_Closed_Text.style.display='none'; Codehighlighter1_311_360_Open_Image.style.display='inline'; Codehighlighter1_311_360_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000"> init() </SPAN><SPAN id=Codehighlighter1_311_360_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_311_360_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000"> TODO Auto-generated method stub</SPAN></FONT><SPAN style="COLOR: #008000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top></FONT></SPAN><SPAN style="COLOR: #000000"><FONT size=2>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG id=Codehighlighter1_437_571_Open_Image onclick="this.style.display='none'; Codehighlighter1_437_571_Open_Text.style.display='none'; Codehighlighter1_437_571_Closed_Image.style.display='inline'; Codehighlighter1_437_571_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_437_571_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_437_571_Closed_Text.style.display='none'; Codehighlighter1_437_571_Open_Image.style.display='inline'; Codehighlighter1_437_571_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> String intercept(ActionInvocation invocation) </SPAN><SPAN style="COLOR: #0000ff">throws</SPAN><SPAN style="COLOR: #000000"> Exception </SPAN><SPAN id=Codehighlighter1_437_571_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://m.tkk7.com/images/dot.gif"></SPAN></FONT><SPAN id=Codehighlighter1_437_571_Open_Text><FONT size=2><SPAN style="COLOR: #000000">{<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        Application.getInstance().getContainer().autowireComponent(invocation.getAction());<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">return</SPAN></FONT><SPAN style="COLOR: #000000"><FONT size=2> invocation.invoke();<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align=top><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</FONT></SPAN></SPAN><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></FONT></SPAN></DIV><BR><FONT size=2>榪欏嚑孌典唬鐮侊紝浣犱笉闇瑕佸湪spring閲岄厤緗產ction錛屼篃涓嶉渶瑕佸湪xwork.xml閲岄潰閰嶇疆external-ref銆傚彧瑕佷繚璇乤ction寮曠敤鐨勪笢涓滃拰spring閲岄潰鍚屽悕灝辮兘澶焌uto wire by name浜嗐?BR><BR>鍘熺悊錛氭嫤鎴櫒浼氬湪姣忎釜action涔嬪墠璋冪敤autowireComponent(invocation.getAction())銆傝繖鏍穝pring灝變細鍘昏嚜鍔ㄧ粍瑁呰繖涓紶榪涙潵鐨刟ction瀵硅薄錛岃宎ction瀵硅薄閲岀殑灞炴у拰spring閲岀殑bean id鍚屽悕銆傛墍浠pring灝變細鑷姩灝哸pplication.xml閲屽搴旂殑bean娉ㄥ皠鍒癮ction鐨勫睘鎬ч噷鍘伙紝浠庤岃揪鍒版妸action鎸夌敤鎴峰笇鏈涚殑鏂瑰紡緇勮璧鋒潵鐨勭洰鐨勩?BR><BR>濡傦細<BR>appliaction.xml<BR></FONT> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">bean </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="myService"</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">property </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="target"</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">bean </SPAN><SPAN style="COLOR: #ff0000">class</SPAN><SPAN style="COLOR: #0000ff">="myServiceDefaultImpl"</SPAN><SPAN style="COLOR: #ff0000"> autowire</SPAN><SPAN style="COLOR: #0000ff">="byName"</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>          </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">bean</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT></DIV><BR><FONT size=2>xwork.xml<BR></FONT> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">action </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="myAction"</SPAN><SPAN style="COLOR: #ff0000"> class</SPAN><SPAN style="COLOR: #0000ff">="myAction"</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>            </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">result </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="success"</SPAN><SPAN style="COLOR: #0000ff">></SPAN><SPAN style="COLOR: #000000">/success.ftl</SPAN><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">result</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT><SPAN style="COLOR: #000000"><BR><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </FONT></SPAN><FONT size=2><SPAN style="COLOR: #0000ff"></</SPAN><SPAN style="COLOR: #800000">action</SPAN><SPAN style="COLOR: #0000ff">></SPAN></FONT></DIV><BR><FONT size=2>Action:<BR></FONT> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><FONT size=2><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></FONT><SPAN style="COLOR: #000000"><FONT size=2>public class myAction extends ActionSupport {<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>    protected myService;<BR>         .......<BR><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>    }<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></FONT></SPAN></DIV><BR><FONT size=2>鏈鍚庤寰楄鍦╳eb.xml閰嶄笂listener-class</FONT><img src ="http://m.tkk7.com/lilan1983/aggbug/21119.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lilan1983/" target="_blank">鏉庡矚</a> 2005-11-23 13:52 <a href="http://m.tkk7.com/lilan1983/archive/2005/11/23/21119.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>AOP,IOC,Springhttp://m.tkk7.com/lilan1983/archive/2005/06/01/5408.html鏉庡矚鏉庡矚Wed, 01 Jun 2005 06:11:00 GMThttp://m.tkk7.com/lilan1983/archive/2005/06/01/5408.htmlhttp://m.tkk7.com/lilan1983/comments/5408.htmlhttp://m.tkk7.com/lilan1983/archive/2005/06/01/5408.html#Feedback0http://m.tkk7.com/lilan1983/comments/commentRss/5408.htmlhttp://m.tkk7.com/lilan1983/services/trackbacks/5408.html鐞嗚ВAOP

鎴戣寰楅潰鍚戝璞″緢濂藉湴瑙e喅浜嗚蔣浠剁郴緇熶腑鑱岃矗鍒掑垎鐨勯棶棰?SPAN lang=EN-US>.鍊熷姪浜庨潰鍚戝璞?杞歡寮鍙戜漢鍛樹竴鑸殑,閮藉彲浠ュ皢闇姹傞噷鐨勫悕璇嶈漿鎹㈡垚緋葷粺涓殑瀵硅薄,鍔ㄨ瘝杞崲涓哄璞¢噷鐨勬柟娉?榪欐牱闈炲父絎﹀悎浜虹殑鎬濈淮鏂瑰紡,闈炲父鑷劧.


浣嗘槸,闂鏄煇浜涢渶姹傚嵈鍋忓亸涓嶆槸鑳界敤榪欐牱鐨勨濆悕璇嶁濆拰鈥濆姩璇嶁濆氨鑳藉畬緹庣殑鎻忚堪鍑烘潵鐨?鍋囧榪欐牱鐨勯棶棰?闇瑕佸緋葷粺涓殑鏌愪簺鏂規硶榪涜浜嬪姟澶勭悊,榪欑闇瑕佷簨鍔′唬鐮佹暎甯冨湪澶氫釜綾諱腑.闈㈠榪欑闇姹?搴旇鎬庝箞鍔炲憿?鏈鐩存帴鐨勫姙娉曞氨鏄?鍒涘緩涓涓熀綾?鎺ュ彛)鎴栬呬竴涓姪鎵?灝嗕簨鍔″鐞嗙殑鍔熻兘鏀懼湪鍏朵腑,騫惰鎵鏈夐渶瑕佷簨鍔″姛鑳界殑綾葷戶鎵胯繖涓熀綾?鎺ュ彛)鎴栬呬嬌鐢ㄨ繖涓姪鎵?鍔犲叆榪欐牱鐨?闇瑕佷慨鏀圭殑鍦版柟灝變細鍒嗘暎鍦ㄥ涓枃浠朵腑.榪欐牱澶х殑淇敼閲?鏃犵枒浼氬鍔犲嚭閿欑殑鍑犵巼,騫朵笖鍔犲ぇ緋葷粺緇存姢鐨勯毦搴?濡傚浘:

                                      1.jpg




鍥犳,闈㈠悜鏂歸潰鐨勭紪紼?
Aspect Oriented Programming,AOP)搴旇繍鑰岀敓.AOP涓哄紑鍙戣呮彁渚涗簡涓縐嶆弿榪版í鍒囧叧娉ㄧ偣鐨勬満鍒?SPAN lang=EN-US>,騫惰兘澶熻嚜鍔ㄥ皢妯垏鍏蟲敞鐐圭粐鍏ュ埌闈㈠悜瀵硅薄鐨勮蔣浠剁郴緇熶腑錛屼粠鑰屽疄鐜頒簡妯垏鍏蟲敞鐐圭殑妯″潡鍖?閫氳繃鍒掑垎Aspect浠g爜,妯垏鍏蟲敞鐐瑰彉寰楀鏄撳鐞?寮鍙戣呭彲浠ュ湪緙栬瘧鏃舵洿鏀?鎻掑叆鎴栭櫎鍘葷郴緇熺殑Aspect,鐢氳嚦閲嶇敤緋葷粺鐨?/SPAN>Aspect.鈥?OOP鍙敤浜庤〃紺哄璞′箣闂寸殑娉涘寲-鐗瑰寲(generalization-specialization)鍏崇郴(閫氳繃緇ф壙鏉ヨ〃鐜?,鑰屽璞′箣闂寸殑妯悜鍏寵仈鍒欏畬鍏ㄧ敤AOP鏉ヨ〃鐜?SPAN lang=EN-US>. 榪欐牱,寰堝緇欏璞′箣闂存í鍚戝叧鑱斿鍔犵伒媧繪х殑璁捐妯″紡(渚嬪Decorator絳?SPAN lang=EN-US>)灝嗕笉鍐嶅繀瑕?鈥?濡傚浘:
                                       2.jpg

Spring涓殑Ioc

鎯充竴鎯充互鍓嶅湪浣跨敤宸ュ巶妯″紡鐨勬椂鍊?SPAN lang=EN-US>,鍦ㄦ渶鏃╃殑鎯呭喌涓?姣忎釜宸ュ巶鍙兘閮芥槸涓涓?/SPAN>Singleton,鐢熸垚瀵硅薄鐨勪唬鐮佽鍐欐鍦ㄤ簡綾婚噷闈?SPAN lang=EN-US>.鍚庢潵浜轟滑瑙夎繖鏍瘋繕鏄﹀悎紼嬪害澶珮,榪樹笉澶熺伒媧?鎵浠ユ妸瀵硅薄鐨勭被鍚嶅啓鍦ㄤ竴涓?/SPAN>XML鏂囦歡閲?SPAN lang=EN-US>,榪欐牱涓鏉?闂鍙堟潵浜?姣忎釜宸ュ巶閮芥湁鑷繁鐨勮鍙栭厤緗枃浠剁殑浠g爜,閫氳繃璇誨彇XML鏂囦歡,鎴栬呴氳繃璇誨彇Properties,宸ュ巶閲屽厖婊′簡涔辯碂緋熺殑鍜屼笟鍔¢昏緫瀹屽叏涓嶇浉鍏崇殑閰嶇疆綆$悊浠g爜,緇存姢璧鋒潵寰堜笉鏂逛究,.鑰?/SPAN>Spring閫氳繃鈥?/SPAN>緇勪歡宸ュ巶鈥?/SPAN>鎶婅繖浜涢兘闆嗘垚鍦ㄤ簡涓璧?SPAN lang=EN-US>,鐢ㄤ竴涓粺涓鐨?/SPAN>BeanFactory鏉ョ鐞嗚繖浜涢厤緗?SPAN lang=EN-US>,鑰屼笖鎻愪緵浜嗘洿楂樹竴綰х殑鎶借薄:ApplicationContext

 

Ioc濂藉儚寰堢濂囩殑鏍峰瓙,鍏跺疄鍘熺悊鍜屽疄鐜伴兘寰堢畝鍗?灝辨槸灝嗚浣跨敤鐨勫璞¢兘鐢╔ML鏉ュ畾涔?鐢ㄥ弽灝勬潵鐢熸垚,鐢ㄦ敞灝勭殑鏂瑰紡鏉ヤ嬌鐢? 鍏跺疄Ioc鏄伐鍘傛ā寮忕殑鍗囧崕錛?/SPAN>Ioc鍙互琚湅浣滄槸涓涓ぇ宸ュ巶錛屽彧涓嶈繃榪欎釜澶у伐鍘傞噷瑕佺敓鎴愮殑瀵硅薄閮芥槸鍦?/SPAN>XML鏂囦歡涓粰鍑哄畾涔夌殑錛岀劧鍚庡埄鐢?/SPAN>Java鐨?SPAN lang=EN-US>鈥滃弽灝勨濈紪紼嬶紝鏍規嵁XML涓粰鍑虹殑綾誨悕鐢熸垚鐩稿簲鐨勫璞°備粠瀹炵幇鏉ョ湅錛?/SPAN>Ioc鏄妸浠ュ墠鍦ㄥ伐鍘傛柟娉曢噷鍐欐鐨勫璞$敓鎴愪唬鐮侊紝鏀瑰彉涓虹敱XML鏂囦歡鏉ュ畾涔夛紝涔熷氨鏄妸宸ュ巶鍜屽璞$敓鎴愯繖涓よ呯嫭绔嬪垎闅斿紑鏉ワ紝鐩殑灝辨槸鎻愰珮鐏墊椿鎬у拰鍙淮鎶ゆс?SPAN lang=EN-US>

Template Method鍜屽洖璋冨湪妗嗘灦涓殑浣跨敤

Template妯″紡涓昏鏄敤鏉ヨВ鍐寵繖鏍風殑涓涓棶棰?SPAN lang=EN-US>:褰撲綘鐭ラ亾綆楁硶鐨勫叿浣撴楠?浣嗕笉鐭ラ亾濡備綍鍘繪墽琛岃繖浜涙楠?Template鎶婂浣曟墽琛岃繖浜涙楠ょ殑鏂規硶閮藉皝瑁呮垚鎶借薄鐨勫嚱鏁?SPAN lang=EN-US>,騫朵笖鎻愪緵涓涓紜殑欏哄簭鍘繪墽琛岃繖浜涙楠?鑰屽叿浣撳瓙綾誨疄鐜拌繖浜涘鐞嗗悇涓楠ょ殑鎶借薄鏂規硶.

 

涓氬姟閫昏緫鎶借薄鍒拌秴綾婚泦涓寲灝辨槸鎵璋撶殑鈥濇帶鍒跺弽杞濅簡.鍦ㄤ紶緇熺殑綾誨簱涓?涓鑸槸鐢卞鎴風鏉ヨ皟鐢ㄧ被搴撻噷鐨勬柟娉?鑰屽湪榪欓噷,鍗存槸妗嗘灦鎺у埗浜嗙敤鎴鋒祦紼?鍏蜂綋鐨勫瓙綾誨彧鏄姹傚飽琛屼竴涓槑紜殑濂戠害.鍦⊿pring涓殑MVC妗嗘灦閲?jdbc鍖呴噷.閮藉ぇ閲忕殑浣跨敤浜員emplate妯″紡.

 

鑰?SPAN lang=EN-US>Java涓殑鍥炶皟鍑芥暟涓昏鏄湪瀹炵幇浜嬩歡椹卞姩妯″瀷鐨勬椂鍊欎嬌鐢ㄧ殑,浣嗘槸鍦⊿pring閲岄潰,鍥炶皟琚祴浜堜簡鏂扮殑鎰忎箟:閫氳繃鍥炶皟鎺ュ彛(鍑芥暟)鏉ュ疄鐜板彲鎵╁睍鎬?濡俲dbc鍖呯殑RowcallbackHandler.



鏉庡矚 2005-06-01 14:11 鍙戣〃璇勮
]]>
瀵筍pring MVC Framework鐨勭悊瑙?/title><link>http://m.tkk7.com/lilan1983/archive/2005/05/27/5258.html</link><dc:creator>鏉庡矚</dc:creator><author>鏉庡矚</author><pubDate>Fri, 27 May 2005 03:29:00 GMT</pubDate><guid>http://m.tkk7.com/lilan1983/archive/2005/05/27/5258.html</guid><wfw:comment>http://m.tkk7.com/lilan1983/comments/5258.html</wfw:comment><comments>http://m.tkk7.com/lilan1983/archive/2005/05/27/5258.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/lilan1983/comments/commentRss/5258.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/lilan1983/services/trackbacks/5258.html</trackback:ping><description><![CDATA[     鎽樿: 鍓嶈█ 鏈榪戝湪鐪婼pring MVC鐨勬簮鐮?灝辨妸鑷繁瀵筂VC妯″紡鍜屽鍚勭妗嗘灦鐨勫疄鐜扮殑璁よ瘑鍐欏嚭鏉ョ粰澶у鐪嬬湅,綆楁槸涓涓葷粨.鎵浠?鎭寵澶у鐢ㄦ鐤戠殑鐪煎厜鏉ョ湅寰呰繖綃囨枃绔?鍋囧鏈夎璇嗕笉瀵圭殑鍦版柟,楹葷儲鎸囧嚭. MVC涓嶹EB搴旂敤 MVC鏄粈涔堝氨涓嶇敤鎴戝璇翠簡.瀵逛簬鐜版湁杈冩垚鐔熺殑Model-View-Control(MVC)妗嗘灦鑰岃█,鍏舵敞鎰忕殑涓昏闂鏃犲涔庝笅闈㈣繖浜? Model: 妯″瀷搴旇鍖呭惈鐢辮鍥炬樉紺虹殑鏁版嵁...  <a href='http://m.tkk7.com/lilan1983/archive/2005/05/27/5258.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/lilan1983/aggbug/5258.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/lilan1983/" target="_blank">鏉庡矚</a> 2005-05-27 11:29 <a href="http://m.tkk7.com/lilan1983/archive/2005/05/27/5258.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://zbvip888.com" target="_blank">无码乱人伦一区二区亚洲</a>| <a href="http://8mav1000.com" target="_blank">亚洲国产日韩成人综合天堂</a>| <a href="http://323799.com" target="_blank">亚洲av永久无码精品网站 </a>| <a href="http://449892.com" target="_blank">亚洲深深色噜噜狠狠爱网站</a>| <a href="http://www-006688.com" target="_blank">一级毛片免费不卡直观看</a>| <a href="http://my77789.com" target="_blank">xvideos亚洲永久网址</a>| <a href="http://selangcun.com" target="_blank">毛片A级毛片免费播放</a>| <a href="http://imfakaixin.com" target="_blank">亚洲性69影院在线观看</a>| <a href="http://btintemet.com" target="_blank">100000免费啪啪18免进</a>| <a href="http://xass1.com" target="_blank">中中文字幕亚洲无线码</a>| <a href="http://tccqdy.com" target="_blank">性xxxx视频播放免费</a>| <a href="http://77663499.com" target="_blank">色网站在线免费观看</a>| <a href="http://xseporn.com" target="_blank">yy6080亚洲一级理论</a>| <a href="http://gzmsijz.com" target="_blank">99免费精品视频</a>| <a href="http://wwwby1378.com" target="_blank">亚洲影院在线观看</a>| <a href="http://yctbhb.com" target="_blank">在线观看免费黄网站</a>| <a href="http://wwwkckc.com" target="_blank">久久精品亚洲中文字幕无码网站</a>| <a href="http://wwwbu610.com" target="_blank">华人在线精品免费观看</a>| <a href="http://121fj.com" target="_blank">亚洲日韩中文在线精品第一</a>| <a href="http://igdytt.com" target="_blank">久久精品免费网站网</a>| <a href="http://77133144.com" target="_blank">亚洲av成人无码久久精品</a>| <a href="http://gwcyy.com" target="_blank">亚洲精品视频在线观看免费</a>| <a href="http://yixinbanks.com" target="_blank">亚洲熟妇无码一区二区三区导航</a>| <a href="http://323c.com" target="_blank">国产成人在线观看免费网站 </a>| <a href="http://hwafarda.com" target="_blank">国产精品免费视频网站</a>| <a href="http://xsdggzs.com" target="_blank">一级毛片a免费播放王色</a>| <a href="http://8654123.com" target="_blank">亚洲AV无码乱码在线观看裸奔</a>| <a href="http://ydysmedia.com" target="_blank">99久久免费看国产精品</a>| <a href="http://shnisda.com" target="_blank">亚洲性无码AV中文字幕</a>| <a href="http://zhaofeiz.com" target="_blank">亚洲成aⅴ人片久青草影院</a>| <a href="http://juytv.com" target="_blank">久久精品国产影库免费看</a>| <a href="http://www5xsq.com" target="_blank">亚洲av成人综合网</a>| <a href="http://chenglide.com" target="_blank">亚洲精品无码日韩国产不卡?V</a>| <a href="http://9ytx.com" target="_blank">久久免费观看国产99精品</a>| <a href="http://liulian88.com" target="_blank">日韩亚洲国产综合高清</a>| <a href="http://shaolingtongluo.com" target="_blank">亚洲国产人成精品</a>| <a href="http://my94ok.com" target="_blank">日本片免费观看一区二区</a>| <a href="http://1444000.com" target="_blank">黄色免费网址大全</a>| <a href="http://800141.com" target="_blank">亚洲码在线中文在线观看</a>| <a href="http://d3q4.com" target="_blank">免费永久看黄在线观看app</a>| <a href="http://295301.com" target="_blank">亚洲精品免费视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>