As you can see in Listing 6, dom4j USES a factory approach for constructing objects included in the document representation built from a parse.
正如您在清单6中看到的,dom 4 j使用一个工厂方法来构造文档表示(从语法分析构建)中包含的对象。
The simplest approach is to encapsulate the creation of the proxy class within the Factory pattern.
最简单的方法就是在工厂模式中把代理类的建立封装起来。
In fact, many would have started this approach with a factory object, rather than a factory method — we did, but soon backed away.
实际上,许多人已经用工厂对象来着手这种方法,而不是用工厂方法—我们以前是这样做的,但很快就放弃了。
Another approach would be to create a factory class for instantiating the implementations, but there would still be a dependency to the implementation class in your code.
另一种方法是创建用于实例化实现的工厂类,但是您的代码中仍然存在对实现类的依赖。
That decision is implemented using the third approach — the decision is configured inside the factory and hidden from the client.
该决定使用第三个方法实现——该决定在工厂内部配置,对客户机隐藏。
The getCalculator() factory method currently takes the very simple approach of assuming that all calculators created by this service will be accessed via the same service endpoint.
目前, getCalculator()工厂方法采用了非常简单的方法,它假定由这个服务所创建的全部计算器都是通过相同的服务端点来访问的。
This approach is reasonable if only one application will ever use a WebSphere MQ messaging provider connection factory or activation specification that has been configured with a channel exit.
如果只有一个应用程序使用通道出口配置的WebSphereMQ消息提供程序连接工厂或激活规范,那么这种方法更加合理。
But a more parsimonious approach is to let a factory object generate the needed customer objects "as each customer enters the store."
但更简洁的方法是“在每位顾客到商店时”,让工厂对象生成所需的顾客对象。
Borrowing this helps mechanical designer among enterprise and factory to grasp a kind of easy application program development approach from this.
借此帮助企业和工厂中的机械设计人员掌握一种简单易行的应用程序开发方法。
The approach has been wielded at a pelletizing factory; the results show that the proposed approach is very effective.
本方法已在某球团厂得到实际运用,结果表明了该方法的有效性。
For DST test data without appearance of radial flow, this approach is also able to provide satis factory formation parameters, so it has great value of practical application.
对于未出现径向流的DST测试资料,该方法也能提供较为满意的地层参数,具有较强的实际应用价值。
The method is effective, quick, accurate and reproducible. The satis factory results show that this new method has certain practical values as an approach of quality control.
结果表明,实验方法简便、快速,结果准确,可以用于6-APA生产的质量控制。
The method is effective, quick, accurate and reproducible. The satis factory results show that this new method has certain practical values as an approach of quality control.
结果表明,实验方法简便、快速,结果准确,可以用于6-APA生产的质量控制。
应用推荐