📄 n层设计基础续.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0041)http://www.shecn.com/jof/jof13/STA-B8.htm -->
<HTML><HEAD><TITLE>N</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId></HEAD>
<BODY>
<TABLE height=57 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle width="25%" height=53><A
href="http://www.umlchina.com/forum.htm" target=_blank><IMG height=53
src="N层设计基础续.files/forum2.gif" width=158 border=1></A> </TD>
<TD align=middle width="50%" height=53>
<P align=center><FONT color=#ff0000 size=5>物件导向杂志</FONT></P></TD>
<TD align=middle width="25%" height=53>
<P align=center><A href="http://www.shecn.com/jof/jof13/PRE8.htm"><FONT
size=3>返回目录</FONT></A></P></TD></TR></TBODY></TABLE>
<DIV class=Section1>
<P class=MsoNormal style="TEXT-ALIGN: left" align=left><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 28pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN"><SPAN
style="mso-spacerun: yes"> </SPAN>N-tier</SPAN></B><B
style="mso-bidi-font-weight: normal"><SPAN
style="FONT-SIZE: 28pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">架构的</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 28pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 華康中黑體; mso-font-kerning: 8.0pt"><O:P>
</O:P></SPAN></B></P>
<P class=MsoNormal style="TEXT-ALIGN: left" align=left><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="FONT-SIZE: 28pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-spacerun: yes">
</SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN
style="FONT-SIZE: 28pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">进阶设计模式</SPAN></B><SPAN
lang=EN-US
style="FONT-SIZE: 14pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN">(Design
Pattern)</SPAN><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="FONT-SIZE: 14pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt"><O:P>
</O:P></SPAN></I></P>
<P class=MsoNormal style="MARGIN-TOP: 6pt"><B
style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="LETTER-SPACING: 0.3pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-spacerun: yes">
</SPAN></I></B><B style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="FONT-SIZE: 16pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-spacerun: yes"> </SPAN></I></B><I
style="mso-bidi-font-style: normal"><SPAN
style="FONT-SIZE: 16pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">──</SPAN></I><I
style="mso-bidi-font-style: normal"><SPAN
style="FONT-SIZE: 16pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-fareast-language: ZH-CN">
</SPAN></I><B style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="FONT-SIZE: 12pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-fareast-language: ZH-CN">Stateless</SPAN></I><I
style="mso-bidi-font-style: normal"><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">与</SPAN></I></B><B
style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="FONT-SIZE: 12pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-fareast-language: ZH-CN">Stateful</SPAN></I></B><B
style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对象携手合作</SPAN></I></B><B
style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="FONT-SIZE: 12pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt"><O:P>
</O:P></SPAN></I></B></P>
<P class=MsoNormal style="MARGIN-TOP: 6pt"><B
style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="LETTER-SPACING: 0.3pt; mso-font-kerning: 8.0pt"> <O:P>
</O:P></SPAN></I></B></P>
<P class=MsoNormal style="TEXT-ALIGN: right" align=right><B
style="mso-bidi-font-weight: normal"><I
style="mso-bidi-font-style: normal"><SPAN lang=EN-US
style="FONT-FAMILY: 華康行書體; LETTER-SPACING: 0.3pt; mso-fareast-font-family: 宋体; mso-fareast-language: ZH-CN; mso-spacerun: yes"> </SPAN></I></B><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 華康行書體; mso-hansi-font-family: 'Times New Roman'">林圣汉、林子扬</SPAN><SPAN
lang=EN-US style="LETTER-SPACING: 0.3pt"><O:P> </O:P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 14.2pt 0pt"><B
style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="LETTER-SPACING: 0.3pt"><SPAN
style="mso-spacerun: yes">
</SPAN><O:P></O:P></SPAN></B></P>
<P class=MsoNormal
style="BACKGROUND: #dfdfdf; MARGIN: 0cm 1cm 0pt 21.3pt; mso-shading: windowtext; mso-pattern: gray-125 auto"><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-spacerun: yes">
</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在「</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN">N-tier</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">架构的基本模式」文章里,已经介绍</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN">5</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个基本的模式了。该文也强调:学习这些基本模式时,也必须学习如何修正它们,以便迅速落实于您的特殊新环境中,才算学以致用!</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 華康細圓體; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN"><O:P>
</O:P></SPAN></P>
<P class=MsoNormal
style="BACKGROUND: #dfdfdf; MARGIN: 0cm 1cm 0pt 21.3pt; mso-shading: windowtext; mso-pattern: gray-125 auto"><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-spacerun: yes">
</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">于是,本文就基于该</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN">5</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个模式而继续推演出更多模式,使其更合乎多层式</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN">(n-tier)</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN">component-based</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">架构之需要。请记得,您必须一边欣赏这些新模式,一边思考如何修正之,增强活用这些模式的能力,才是本文的目标。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 華康細圓體; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN"><O:P>
</O:P></SPAN></P>
<P class=MsoNormal
style="BACKGROUND: #dfdfdf; MARGIN: 0cm 1cm 0pt 21.3pt; mso-shading: windowtext; mso-pattern: gray-125 auto"><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-spacerun: yes">
</SPAN><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">本文的价值不在于介绍几个进阶的模式,而在于教您如何有样学样,无样自己想,举一反三,创造出无限的新模式。换句话说,本文的用意不在于钓几条鱼(模式)给您吃,而在于教您应变能力,能在不同湖泊或大海中皆能自己改进钓鱼技巧(创造新模式的能力),才会永远有鱼吃。</SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 11pt; LETTER-SPACING: 0.3pt; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 華康細圓體; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN"><O:P>
</O:P></SPAN></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="LETTER-SPACING: 0.3pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN"> <O:P>
</O:P></SPAN></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US
style="LETTER-SPACING: 0.3pt; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN"> <O:P>
</O:P></SPAN></B></P></DIV><B style="mso-bidi-font-weight: normal"><SPAN
lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; LETTER-SPACING: 0.3pt; mso-fareast-font-family: MingLiU; mso-font-kerning: 8.0pt; mso-fareast-language: ZH-CN; mso-ansi-language: EN-US; mso-bidi-language: AR-SA"><BR
style="PAGE-BREAK-BEFORE: auto; mso-break-type: section-break"
clear=all></SPAN></B>
<DIV class=Section2>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><I
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -