Sun River
          Topics about Java SE, Servlet/JSP, JDBC, MultiThread, UML, Design Pattern, CSS, JavaScript, Maven, JBoss, Tomcat, ...
          posts - 78,comments - 0,trackbacks - 0
          ---What is Session Facade?
          A Session Facade is implemented as a session enterprise bean. It provides clients with a single interface for the functionality of an application or application subset. The EJB Session Facade pattern wraps entity beans with session beans so that the entity beans aren't directly accessed by clients. The pattern goes beyond simple wrapping to help you structure the objects called by the session beans.
          Use the Facade pattern when:
          ? 1) you want to provide a simple interface to a complex subsystem
          ? 2) you want to layer your subsystems
          ? 3)?to define an entry point to each subsystem level
          There are a couple of ideas we can extract out of that discussion of the Facade pattern. The first is that a Facade should provide an abstract view of the subsystem, rather than simply directly wrapping the API of the whole subsystem itself.
          The second, subtler point involves layering. The idea here is that you may employ multiple Facades to hide the details of successive subsystems. So here you can imagine that a Session Facade might be layered on top of other Facades that further abstract away the details of the underlying business logic. This is a crucial point.
          Facades don't do the real work of a system; they instead delegate to other objects that in turn do the work
          Figure 8.15
          posted on 2006-10-28 15:15 Sun River 閱讀(245) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Design Pattern
          主站蜘蛛池模板: 博野县| 沙田区| 武平县| 沙坪坝区| 都安| 内黄县| 临沭县| 武夷山市| 东平县| 潮安县| 甘德县| 阜城县| 临沭县| 醴陵市| 富锦市| 修武县| 永仁县| 江达县| 昭觉县| 南华县| 沙河市| 陵川县| 兰溪市| 虹口区| 霸州市| 玛纳斯县| 迁西县| 维西| 石屏县| 龙泉市| 兰西县| 日土县| 枞阳县| 堆龙德庆县| 五大连池市| 密山市| 内乡县| 上林县| 和静县| 天长市| 阳春市|