该文件包含小部件对象的实现。
This file contains the implementation of your widget object.
下面介绍创建合成对象的实现细节。
The implementation details of creating the synthetic objects are covered next.
HTTP请求对象的实现。
这个对象的实现能够以该服务选择的任何方式工作。
This object's implementation can work in any way the service chooses.
您需要提供服务对象的实现作为OSGibundle。
You are expected to provide the implementation of the service object as an OSGi bundle.
但这样还不是一个最理想的面向对象的实现,还有更好的方式。
This is a much better object oriented implementation but still not the most optimal.
或可以DDD理念分隔从其更频繁的、面向对象的实现吗?
Or can DDD philosophy be separated from its more frequent, object-oriented implementations?
address类与知道如何格式化address对象的实现类紧密耦合。
The Address class is tightly coupled with the implementation classes that know how to format the Address object.
仔细挑选一个不需要创建自己的对象的实现来管理被缓存的对象。
Take care to choose an implementation that does not need to create its own objects to manage the objects being cached.
根据开发环境以及所实现应用程序的目的,对象的实现形式也有所不同。
The object can vary in implementation depending on the development environment as well as the intention of an implemented application.
本文首先进行需求分析,然后探讨了数字地图的内容、结构及其面向对象的实现。
This paper first describes the requirement analysis of the digital map, then discusses its content and structure, and finally gives its object oriented implementation.
但是,在这种情况下,验证异常实际是验证过程的副产品,理想情况下,应该隐藏业务对象的实现。
The validation exception in this case is really a byproduct of the validation process, however, and would ideally be hidden from the business object implementation.
如果对象的实现有所改变,客户端还有机会依然能够使用对象(如果对象的导出函数没有修改)。
If the object's implementation changes, chances are that the client will still be able to use the object (if the object's exported functions do not change).
如果希望队列项做一些其他事情,就需要在Delayed对象的实现中加入方法,并在从队列中取出后调用这个新方法。
If you wanted the queued item to do something else, you would need to add that to the implementation of the Delayed object and call that new method upon retrieval from the queue.
您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。
You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.
清单2描述了dsl类型的对象的常见实现。
Listing 2 depicts a common implementation for DSL-type objects.
下一步,我使我的域对象实现该界面。
因为操作和它所作用的对象是单独实现的,所以可以在不更改目标对象的前提下更改操作。
Since the operation is implemented separately from the objects on which it works, the operation can be changed without changing the target objects.
任何实现了这一方法的对象也实现了这一接口。
Any object which implements that method also implements the interface.
这个习惯能让对象实现稳定的行为。
This habit allows the object to deliver consistent behavior.
但是按照面向对象开发的精神,首先需要一个对象,它包含将实现的所有东西,所以我们首先开发这个对象。
But first, in the best spirit of object-oriented development, you need an object to contain everything else you'll implement, so we'll start with that.
分布式对象技术的实现有三个主要类型。
There are three main types of implementation of distributed objects technology.
即使我们有一个高级的、面向对象的系统实现,我们也将遇到一些问题。
Even if we had a superior, object-oriented system implementation, we would encounter some problems.
而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。
The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.
所以,它使用常见的面向对象概念(例如继承)来实现不同的部件。
Therefore, it uses the usual object-oriented concepts, such as inheritance, to realize various types of widgets.
找到那些以测试里的方法命名的方法,并提供一个行为像真实对象那样的实现。
Find those methods that are called from the method under test and provide an implementation that behaves like the real object would.
平衡可以通过对象的位置实现,如一间房子的窗户,还可以通过对象的体积或大小达到平衡,还有通过颜色取得平衡(如室内亮度)。
Balance can be balance by location of objects such as Windows on a house, balance by volume or sizes of objects, balance by color (like desired brightness in a room).
这通过名为模拟对象的常见测试模式实现。
This is accomplished with the common testing pattern known as mock objects.
用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。
In this way, the object returned from the static factory method could implement any number of interfaces defined when I create the proxy.
此外,通过提供被注入对象的存根实现、改进测试覆盖率和代码质量,可轻松对编写良好的应用程序类执行单元测试。
Furthermore, well-written application classes can easily be unit tested by providing stub implementations of the injected objects, improving test coverage and code quality.
应用推荐