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 閱讀(239) 評論(0)  編輯  收藏 所屬分類: Design Pattern
          主站蜘蛛池模板: 金塔县| 确山县| 无极县| 岫岩| 双流县| 乐东| 东乡| 西畴县| 广宁县| 南城县| 天台县| 上饶市| 宁城县| 志丹县| 始兴县| 双城市| 怀柔区| 雅江县| 兖州市| 扶余县| 巫溪县| 长阳| 马山县| 乌苏市| 光山县| 昌吉市| 广东省| 施甸县| 漳州市| 奇台县| 梁平县| 班玛县| 澄城县| 治多县| 天柱县| 都匀市| 南宁市| 濉溪县| 虹口区| 巴楚县| 册亨县|