亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lib0030.html

?? j2ee架構(gòu)師手冊(cè)
?? HTML
字號(hào):
<html>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Chapter 5: A Layered Approach to J2EE Design</title>
<link rel="STYLESHEET" type="text/css" href="images/xpolecat.css">
<link rel="STYLESHEET" type="text/css" href="images/ie.content.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/teamlib.gif" width="62" height="15" border="0" align="absmiddle"  alt="Team LiB"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href="LiB0029.html"><img src="images/previous.gif" width="62" height="15" border="0" align="absmiddle" alt="Previous Section"></a>
<a href="LiB0031.html"><img src="images/next.gif" width="41" height="15" border="0" align="absmiddle" alt="Next Section"></a>
</div></td></tr></table>
<br>
<div class="chapter">
<a name="ch05"></a>
<h1 class="chapter-title"><span class="chapter-titlelabel">Chapter 5: </span>A Layered Approach to J2EE Design</h1><a name="130"></a><a name="IDX-49"></a>
<div class="highlights">
<p class="first-para">Object modeling is a key skill for any technical architect with any object-oriented technology, such as J2EE. Object models are the most popular mechanism for documenting J2EE application designs. The technical architect is typically responsible for facilitating creation of an object model. This chapter presents and explains a general approach to designing J2EE applications. This discussion is necessary background to the <a href="LiB0038.html#184" target="_parent" class="chapterjump">next chapter</a>, which offers tips and techniques for transforming the use-case analysis described in previous chapters into a concrete design.</p>
<p class="last-para">J2EE application design is a vast topic. Entire books have been written about design techniques, design patterns, and object modeling with UML. And like most large and complicated methodologies, UML is only partially applied in business applications. Thus, although I don't want to discourage learning, I do take a streamline approach to the topic in this chapter. For instance, of the hundreds of design patterns that have been identified and cataloged, this chapter focuses on the handful of patterns most commonly used in business applications today.</p>
</div>
<div class="section">
<h2 class="sect2-title">
<a name="131"></a><a name="ch05lev1sec1"></a>Overview of the Layering Concept</h2>
<p class="first-para">A common framework for J2EE applications is <i class="emphasis">software layering</i>, in which each layer provides functionality for one section of the system. The layers are organized to provide support and base functionality for other layers. For <a name="132"></a><a name="IDX-50"></a>example, the data access layer provides a set of services to read and write application data. An inventory management application needs services that can read information about specific items and warehouses.</p>
<p class="para">Layering is not a new concept; operating systems and network protocols have been using it for years. For instance, anyone who's worked with networks is familiar with telnet, FTP, and Internet browsers. All these services depend on a TCP/IP networking layer. As long as the interface to TCP/IP services stays constant, you can make network software advances within the TCP framework without affecting telnet, FTP, or your Web-browsing capability. Typically, the TCP/IP layer requires the services of a device layer, which understands how to communicate with an Ethernet card.</p>
<p class="para">Applications can make strategic use of the same concept. For example, it's common to make data access a separate portion of an application so that data sources (e.g., Sybase or Oracle) can be changed relatively easily without affecting the other layers. The way the application physically reads and writes data may change without affecting application processing or business logic.</p>
<p class="para">To continue the inventory management example, suppose the data access layer had a method to look up the information for an inventory item given a UPC code. Suppose that other parts of the application use this method when information about items is needed (e.g., a customer viewing that item on a Web page or an inventory analyst ordering stock for that item). As long as the methods for access item information remain the same, you should be able to reorganize how you can store information about items and ware-houses without affecting the rest of the application.</p>
<p class="para">In essence, a layered approach mitigates the risk of technical evolution. If you use this concept to separate your deployment mechanics (e.g., servlets, enterprise beans), you can add new deployments without changing your business logic or data access layer. For example, Web services have become popular only within the last two years. If your application effectively separates your business logic and data access logic from the rest of your application, you can freely add a Web services deployment without having to change the entire application.</p>
<p class="para">
<a class="internaljump" href="#ch05table01">Table 5.1</a> lists common software layers used in J2EE applications. You can think of these layers as "roles." For instance, a customer object may have a role in the data access layer, the business logic layer, and the deployment layer.</p>
<a name="133"></a><a name="ch05table01"></a>
<table class="table" border="1">
<caption class="table-title">
<span class="table-title"><span class="table-titlelabel">Table 5.1: </span>Roles of Software Layers in J2EE Applications</span>
</caption>
<thead>
<tr valign="top">
<th class="th" scope="col" align="left">
<p class="table-para">
<b class="bold">Layer</b>
</p>
</th><th class="th" scope="col" align="left">
<p class="table-para">
<b class="bold">Role</b>
</p>
</th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">Data access object layer</p>
</td><td class="td" align="left">
<p class="table-para">Manages reading, writing, updating, and deleted stored data. Commonly contains JDBC code, but could also be used for XML document and file storage manipulation.</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">Business logic layer</p>
</td><td class="td" align="left">
<p class="table-para">Manages business processing rules and logic.</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">Value objects layer</p>
</td><td class="td" align="left">
<p class="table-para">Lightweight structures for related business information. These are sometimes referred to as <i class="emphasis">data transfer objects</i>.</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">Deployment layer</p>
</td><td class="td" align="left">
<p class="table-para">Publishes business object capabilities.</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">Presentation layer</p>
</td><td class="td" align="left">
<p class="table-para">Controls display to the end user.</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">Architectural component layer</p>
</td><td class="td" align="left">
<p class="table-para">Generic application utilities. Often, these objects are good candidates for enterprise-wide use.</p>
</td>
</tr>
</tbody>
</table>
<a name="134"></a><a name="IDX-51"></a>
<p class="para">
<a class="internaljump" href="#ch05fig01">Figure 5.1</a> illustrates how the individual software layers interrelate.</p>
<div class="figure">
<a name="135"></a><a name="ch05fig01"></a><span class="figuremediaobject"><a href="images/fig68%5F01%5F0%2Ejpg" NAME="IMG_2" target="_parent"><img src="images/fig68_01.jpg" height="251" width="350" alt="Click To expand" border="0"></a></span>
<br style="line-height: 1">
<span class="figure-title"><span class="figure-titlelabel">Figure 5.1: </span>Software Layers for J2EE Applications</span>
</div>
<p class="para">When this boils down to code, I usually implement the layers as separate packages. Here's an example package structure:</p>
<div class="informaltable">
<table border="0">
<tbody>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">
<span class="fixed">com.jmu.app.dao</span>
</p>
</td><td class="td" align="left">
<p class="table-para">Data access object layer</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">
<span class="fixed">com.jmu.app.bus</span>
</p>
</td><td class="td" align="left">
<p class="table-para">Business logic layer</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">
<span class="fixed">com.jmu.app.vo</span>
</p>
</td><td class="td" align="left">
<p class="table-para">Value objects layer</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">
<span class="fixed">com.jmu.app.client</span>
</p>
</td><td class="td" align="left">
<p class="table-para">Presentation layer</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">
<span class="fixed">com.jmu.app.util</span>
</p>
</td><td class="td" align="left">
<p class="table-para">Architectural component layer</p>
</td>
</tr>
<tr valign="top">
<td class="td" align="left">
<p class="table-para">
<span class="fixed">com.jmu.app.deploy</span>
</p>
</td><td class="td" align="left">
<p class="table-para">Deployment layer</p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="para">I use the abbreviation <span class="fixed">jmu</span> for "just made up." Also, you'll want to replace the <span class="fixed">app</span> abbreviation with a meaningful application name.</p>
<p class="para">One question I commonly hear is, why not call the data access object layer directly from the presentation layer? Although calling the data access object layer directly can save some code by eliminating a couple of layers, it means placing any business logic either in the data access object layer or the presentation layer, which makes those layers more complex. Software layering works on the premise that it's easier to solve multiple small problems than fewer large ones. Experience has taught me two lessons:</p>
<ul class="itemizedlist">
<li class="first-listitem">
<p class="first-para">Every time I try to eliminate software layers, I end up having to come back and restructure the application later.</p>
</li>
<li class="listitem">
<p class="first-para">There is tremendous value in consistency.</p>
</li>
</ul>
<p class="para">There is value in consistency for maintenance purposes. For instance, if some JSPs call data access objects directly while others work through business <a name="136"></a><a name="IDX-52"></a>objects and others use deployment wrappers, to make a change to code you're unfamiliar with you have to do an audit of the whole action sequence. This defeats the purpose of object orientation.</p>
<p class="last-para">The remainder of the chapter discusses each layer in depth and common design patterns used for each.</p>
</div>
</div><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/teamlib.gif" width="62" height="15" border="0" align="absmiddle"  alt="Team LiB"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href="LiB0029.html"><img src="images/previous.gif" width="62" height="15" border="0" align="absmiddle" alt="Previous Section"></a>
<a href="LiB0031.html"><img src="images/next.gif" width="41" height="15" border="0" align="absmiddle" alt="Next Section"></a>
</div></td></tr></table>
</body></html>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一卡二卡三卡四卡五卡| 亚洲女人小视频在线观看| 国产99久久久精品| 亚洲在线视频网站| 国产欧美日韩亚州综合| 欧美在线免费观看视频| 国产精品香蕉一区二区三区| 亚洲成人在线免费| 中文字幕巨乱亚洲| 日韩视频一区二区| 色婷婷av一区二区| 国产成人一区二区精品非洲| 天天爽夜夜爽夜夜爽精品视频| 久久中文娱乐网| 欧美日韩的一区二区| 99综合影院在线| 狠狠久久亚洲欧美| 亚洲h动漫在线| 中文字幕综合网| 日韩一区二区三区免费观看| 91黄色激情网站| 成人性生交大片免费看视频在线| 亚洲大片在线观看| 国产精品18久久久| 一区二区理论电影在线观看| 久久天天做天天爱综合色| 欧美日韩国产大片| 一本大道久久精品懂色aⅴ | 亚洲宅男天堂在线观看无病毒| 久久一区二区视频| 日韩欧美一卡二卡| 欧美va亚洲va| 欧美系列亚洲系列| 色悠悠亚洲一区二区| 国产一区二区福利视频| 欧美bbbbb| 日韩精品一卡二卡三卡四卡无卡| 一区二区三区在线免费播放| 亚洲日本护士毛茸茸| 亚洲国产成人自拍| 国产区在线观看成人精品 | 国产欧美一区二区精品忘忧草| 欧美一级黄色片| 在线综合视频播放| 欧美一个色资源| 欧美电影一区二区三区| 欧美精品自拍偷拍| 欧美女孩性生活视频| 欧美麻豆精品久久久久久| 欧美在线观看视频一区二区| 91高清在线观看| 日本韩国视频一区二区| 91福利小视频| 欧美三级电影精品| 欧美日韩视频在线一区二区| 欧美日韩国产精选| 777午夜精品免费视频| 日韩精品一区国产麻豆| 久久午夜免费电影| 国产精品人成在线观看免费 | 成人视屏免费看| a4yy欧美一区二区三区| 91色在线porny| 欧美日韩在线不卡| 欧美亚洲丝袜传媒另类| 欧美手机在线视频| 欧美猛男超大videosgay| 欧美疯狂性受xxxxx喷水图片| 日韩欧美在线网站| 国产清纯在线一区二区www| 国产精品久久久久久久岛一牛影视| 中文字幕精品一区二区三区精品| 17c精品麻豆一区二区免费| 亚洲高清三级视频| 裸体歌舞表演一区二区| 丰满少妇久久久久久久| 色欧美日韩亚洲| 日韩一级在线观看| 中国色在线观看另类| 亚洲精品一二三| 蜜桃av一区二区三区| 国产又黄又大久久| 在线一区二区三区四区五区| 日韩无一区二区| 国产精品青草综合久久久久99| 亚洲精品乱码久久久久| 蜜臀av性久久久久av蜜臀妖精| 日韩中文字幕区一区有砖一区 | 激情另类小说区图片区视频区| 色综合天天综合网天天狠天天| 99热这里都是精品| 91精品久久久久久蜜臀| 中文字幕二三区不卡| 亚洲一区二区三区视频在线播放 | 国产精品每日更新在线播放网址 | 色香蕉成人二区免费| 日韩一区二区三区观看| 国产精品电影一区二区三区| 日韩精品亚洲专区| av一区二区三区四区| 欧美麻豆精品久久久久久| 国产精品免费免费| 久久精品国产99| 在线观看成人免费视频| 国产亚洲精品bt天堂精选| 亚洲成av人影院在线观看网| 成人一级黄色片| 欧美电影免费观看高清完整版在| 一区二区三区欧美日韩| 成人欧美一区二区三区1314| 日韩国产高清影视| av电影在线观看一区| 2024国产精品| 五月天亚洲精品| 不卡的av在线播放| 2019国产精品| 日韩av在线发布| 欧美怡红院视频| 中文字幕亚洲一区二区av在线| 黄网站免费久久| 欧美精品日韩综合在线| 亚洲一区精品在线| 91女人视频在线观看| 国产欧美精品国产国产专区| 麻豆久久一区二区| 911国产精品| 亚洲二区在线视频| 在线免费观看一区| 亚洲免费av高清| 99久久亚洲一区二区三区青草 | 欧美性大战久久| 国产精品色噜噜| 国产成人午夜高潮毛片| 欧美成人乱码一区二区三区| 日韩精品亚洲专区| 亚洲一二三四区不卡| 国产精品正在播放| 国产日韩精品一区二区三区在线| 亚洲成人免费在线观看| 91福利视频久久久久| 亚洲精品视频在线| 91视频免费看| 亚洲视频你懂的| 99久久精品国产观看| 国产精品国产成人国产三级| 99久久综合国产精品| 亚洲欧洲精品一区二区三区不卡| 风间由美一区二区三区在线观看| 国产人成一区二区三区影院| 丰满白嫩尤物一区二区| 国产精品欧美一区喷水| 成人综合在线视频| 综合久久国产九一剧情麻豆| 91久久线看在观草草青青| 一区二区三区日韩精品视频| 欧美日韩三级一区二区| 日韩一区精品视频| 精品国产一区二区亚洲人成毛片| 久久国产夜色精品鲁鲁99| 久久女同精品一区二区| 成人精品鲁一区一区二区| 国产精品的网站| 欧美日韩在线直播| 日韩福利视频导航| 久久这里都是精品| 99热精品国产| 亚洲成人高清在线| 精品成人在线观看| 99视频在线观看一区三区| 亚洲一区二区三区自拍| 日韩欧美在线网站| 菠萝蜜视频在线观看一区| 一区二区三区在线视频播放| 5858s免费视频成人| 激情综合色播激情啊| 国产精品福利影院| 欧美精品一卡二卡| 国产精品亚洲午夜一区二区三区 | 亚洲丝袜美腿综合| 欧美日韩一区二区三区不卡| 久久 天天综合| 亚洲欧美怡红院| 91精品国产综合久久久久久久| 国产精选一区二区三区| 亚洲精品亚洲人成人网| 日韩欧美在线123| av激情综合网| 久久精品噜噜噜成人88aⅴ| 国产精品1区二区.| 一区二区三区日本| 亚洲精品在线一区二区| k8久久久一区二区三区| 日韩成人一级片| 中文字幕制服丝袜成人av| 51午夜精品国产| 99re这里都是精品| 精品午夜久久福利影院| 日韩va欧美va亚洲va久久| 国产精品三级av| 日韩精品一区在线|