❑ While this may be adequate for small applications, it typically leads to code duplication for similar actions, does not allow for easy testing of business logic, and prevents reuse of the same business logic in other environments. [E-P366-BL12]
原译:对一个小的应用程序,这也许就够了,但它常常导致相似动作的重复、无法简单的测试业务逻辑,并且阻止了在其它环境中重用相同的业务逻辑。
试译:对于小规模的应用,这或许足够了;但它常常导致要为相似动作编写重复代码,无法轻易对业务逻辑进行测试,并且阻止了同一业务逻辑在其它环境中的重用。
❑ We will particularly focus on the challenge of accessing reusable business logic from a web tier, a topic not (or poorly) addressed by most of today’s application frameworks. [E-P366-BL9]
原译:....,这是一个当今大部分Web应用框架没有提及(起码是很少提及)的话题。
试译:....,这也是当今大部分Web应用框架尚未解决或解决的不尽如人意的问题。
❑ Spring’s web framework is particularly flexible; it would be hard to think of any requirement on a request-driven MVC web framework that could not be satisfied through the customization hooks it provides. [E-P368-L12]
原译:Spring的Web框架极其灵活;它提供了很有诱惑力的定制功能,借助它提供的定制接口,几乎没有任何一个其他Web框架能做的事是Spring Web框架做不了的。
试译:....,对于要求 请求驱动的MVC web框架能做到的事,Spring的web框架几乎没有做不到的。
❑ While there is a wealth of diverse frameworks for clean separation of web-tier concerns, many address integration into overall application architecture poorly, if at all. [E-P368-BL12]
原译:尽管有很多的框架力求清晰地分离Web层的问题,但它们大多只解决了“寻址”的问题,很少——如果有的话——融入到应用架构的整体之中。
试译:尽管目前很多各类框架力求清晰的分离web层,但大多数无法和整体应用架构进行很好的集成,即使能的话。
❑ In case of simple web-only applications, it’s adequate (if still far from ideal) to perform all business logic within web controllers and dispense with a dedicated middle tier. [E-P368-BL10]
整句漏译!
❑ ....it’s preferable to hold those objects in a lightweight container which in turn is kept as ServletContext attribute. The latter strategy retains all advantages of the ServletContext-based approach .... [E-P371-BL11]
原译:不过相比之下,更可取的方法是在轻量级的容器中持有这些对象,并将容器本身放入ServletContxext熟悉。随后要介绍的策略保持了基于ServletContext的所有优势....
❑ Similar support can be built on other lightweight containers or might already be provided out of the box. [E-P371-BL5]
原译:类似的功能可以用其它的轻量级容器来实现,当然也可以直接使用Spring已提供的功能。
试译:类似的功能可以构建在其它轻量级容器上,或许它们本身已支持该功能。
❑ [E-P521-L8]
❑ [E-P521-L8]
❑ [E-P521-L8]
❑ [E-P521-L8]
❑ [E-P521-L8]
❑ [E-P521-L8]
❑ [E-P521-L8]
第13章 Web层设计 - 部分漏译/误译
|
> 去Expert One-on-One J2EE Development without EJB的论坛
> 我来回应