第16章 示例应用系统 翻译改进及勘误

2005-10-28 16:05:13   来自: leal (开心)

  I - Improvement 改进
  E - Errata 勘误
  P - Page 中文版页码
  L - Line 行数
  B - Bottom 倒数的行数
  原翻译略。
  -------------------------------------------------------------------------
  ❑ In fact, the use of the Spring lightweight IoC container makes it easier than it would otherwise be to add new functionality. [I-P490-L6]
  
  事实上,与其它架构相比,使用Spring轻量级Ioc容器更有利于添加新功能。
  
  ❑ The second scenario requires inventory tracking in the main database holding product and account data, while customers’ orders are held in the separate order database. [I-P490-L13]
  
  后一种场景要求在(存放产品和帐户数据的)主数据库里实现产品目录跟踪功能,而客户的订单则保存在独立的订单数据库中。
  
  ❑ the iBATIS Database Layer [E-P490-BL8]
  
  iBATIS数据层 -> iBATIS数据库层
  
  ❑ A central business object that web tier classes use to access business logic (the PetStoreLogic class, discussed later). [E-P491-L1]
  
  ...(该对象称为PetStoreLogic,...) -> ...(该对象所属的类为PetStoreLogic,...)
  
  ❑ Support for both a single database and separate main/order databases. [I-P491-L5]
  
  既支持单一数据库,又支持两个独立的主/订单数据库。
  
  ❑ Depending on the value of the “useSimpleConfiguration” setting, the “orderDaoManager” is set to either the implementation for the main database (“StoreDaoManager”) or to that for the order database (“OrderDaoManager”). [I-P492-L5]
  
  根据useSimpleConfiguration设定值的不同,orderDaoManager要么采用主数据库的实现(StoreDaoManager)要么采用独立的订单数据库的实现(OrderDaoManager)。
  
  ❑ This is a typical use of the Singleton pattern, combined with ad hoc configuration, in an application that does not use an IoC container or another generic infrastructure backbone.
  
  在这类应用系统(它既不使用IoC容器也不使用其它通用基础框架)中,这也是Singleton模式的一种典型用法,使用时结合特别的配置文件。[I-P492-L8]
  
  ❑ Room for Improvement
  The iBATIS JPetStore is a valuable example, and a significant improvement on the Sun Pet Store. [I-P494-L5]
  
  有待改进之处
  iBATIS JPetStore是个很有价值的示例,相比Sun Pet Store有了很大改进。
  
  ❑ It is easier to understand and more maintainable. [I-P494-L8]
  
  也更易理解,更易维护。
  
  ❑ In our adapted version of JPetStore, we address these issues by introducing a loosely coupled middle tier, using the Spring Framework’s IoC container: [EI-P494-BL7]
  
  我们对原有系统进行了调整,形成了自己的JPetStore版本,其中我们使用了Spring框架的IoC容器,引入了一个松耦合的中间层,从而解决了以下问题:
  ->
  在经调整的JPetStore版本中,我们使用Spring框架的IoC容器引入了一个松耦合的中间层,从而解决了上述(这些)问题:
  
  ❑ Following good OO practice, the PetStoreLogic business object is refactored into a PetStoreFacade interface plus PetStoreImpl implementation, to be accessed by web tier classes via the interface. [EI-P494-BL5]
  
  遵循良好的OO实践原则,把业务对象PetStoreLogic重构成一个PetStoreFacade接口加PetStoreImpl实现,这样web层类就可以通过这个接口访问业务对象。
  
  ❑ generic remoting with pluggable protocols[EI-P495-L8]
  
  通用的远程机制,可接插不同协议
  
  ❑ It is a normal POJO that could easily be used outside the Spring container. [E-P495-L14]
  
  它(上述业务对象)是个易于在Spring容器之外使用的普通POJO。
  
  ❑ The DAO interfaces depend only on Spring’s DataAccessException hierarchy, not on the Spring container. They use these exceptions because of the valuable decoupling from data access technology they provide; this is a matter of choice, not a Spring requirement. Both DAO interfaces and implementations merely use Spring DAO as a class library, and thus would run in any other environment (including an EJB container).
  
  Such non-invasiveness is an important differentiator from an EJB architecture, or an architecture using many older frameworks. [E-P495-L16]
  
  上述两段中文版遗漏,该行所在段格式错误。
  
  ❑
  
  ❑






Expert One-on-One J2EE Development without EJB
作者: Rod Johnson Juergen Hoeller
译者: JavaEye
isbn: 0764558315
书名: Expert One-on-One J2EE Development without EJB
页数: 552
定价: USD 39.99
出版社: Wrox
装帧: Paperback
出版年: 2004-06-21

> 去"Expert One-on-One J2EE Development without EJB"的页面