清单1显示了实现代码的示例。
现在是看看实现代码的时候了。
本图的实现代码如清单3所示。
我们将为实现代码生成api。
We generate an API against which the implementation is coded.
注意,实现代码并未包含在这些例子中。
Note that implementation code isn't included in these examples.
清单5显示了完整的服务器端实现代码。
Listing 5 shows the complete code for the server server-side implementation.
可以实现代码检查自动化。
运行这个测试案例并实现代码使测试通过。
这并不太难做到,但是实现代码将变得相当复杂。
That's not too difficult to do, but the implementation code becomes fairly complex.
这些API直接暴露给实现代码,导致了以下后果。
These APIs are directly exposed to the implementation code which leads to the following.
详细的编排和反编排实现代码被直接添加到绑定类中。
The detailed marshalling and unmarshalling implementation code gets added directly to the bound classes.
最后,一些一般性的原则将改变观察和实现代码的方式。
And finally, some general principles change the way you look at and implement code.
在使用测试研究实现代码的方法时有时会出现这种情况。
This sometimes happens when you investigate ways to implement code using tests.
实现代码可以针对之前介绍的生成的API代码来编写。
The implementation code is written against the generated API code explained above.
要实现代码重用,通常需要使用分层(也称为组件化)。
To implement code reuse, usually layering (also known as componentization) is required.
选择新创建的包并再次单击ok以创建实现代码(图20)。
Select the newly created package and click OK again to generate the implementation code (Figure 20).
另一方面,随着实际实现代码的修改,性能总在发生着变化。
Performance, on the other hand, is subject to change over time as the actual implementation code is modified.
相反,我是通过使用组合而非耦合来实现代码重用。
Rather, I did it by using composition rather than coupling for code reuse.
因为只生成了框架代码,接下来必须为每个类提供具体的实现代码。
Because only skeleton code is generated, you must next provide concrete implementation code for each class.
以上代码可让您在创建Bean实例之后实现代码。
The above code enables you to implement code after a bean instance is created. If you wanted to use a callback listener, you could create a callback listener class
下面介绍了我的思想,我如何实现代码,以及代码的样子。
The following describes my thinking, how I implemented the code, and what the code looks like.
代码生成器对接口进行预处理,生成每个带注释的方法的实现代码。
A code generator pre-processes the interface to generate implementation code for each annotated method.
有关用于JKE场景的详细实现代码,请参见本文提供的插件代码。
See the plug-in code provided with this article for the detailed implementation code used for the JKE scenario.
接下来是OrderService(即服务提供者)的实现代码。
Next, there is the code for the implementation of the OrderService (ie the service provider).
容器加载服务的实现代码,提供到esb的连接性,并管理服务实例。
The container loads the implementation code of the service, provides connectivity to the ESB, and manages service instances.
从业务需求到分析模型,再到实现代码的转换过程的可跟踪能力不足。
This transition from business requirements to analytic models to an implementable code isn't traceable enough.
您可能会用这种方法创建许多头文件以及C/C++实现代码文件。
You'll probably create many files for header and C/C++ implementation code files in this way.
在向资源添加实现代码前,创建一些新的类来提供足够实现以测试函数。
Before adding implementation code to the resource, create a few classes that provide enough implementation to test the functions.
使用测试驱动开发,在实现代码时,就要仔细考虑测试,并建立起测试。
With TDD the tests are thought out and created as the code is implemented.
但是如果你考虑公司实现代码分析面对的文化阻碍,那它就更具吸引力了。
But if you consider the cultural barriers faced by companies implementing code analysis, it's even more compelling.
应用推荐