在本节中,我通过一个示例进一步解释前面介绍的概念。
In this section, I use an example to further explain the introduced concepts.
您还应当注意到,在示例里我一直调用实际的实现类来执行业务逻辑。
You should also notice in the example that I always call an actual implementation class to perform the business logic.
我在示例中使用的是动词形式。
在本节,我将回顾这个示例应用程序代码的重要内容并解释它是如何工作的。
In this section, I'll review the highlights of the code for the sample application and explain how it works.
在第一个示例中,我并不关心实际的机器状态是什么样子的。
In the first example, I don't care what state the machine is actually in.
这也是我在如下的示例中将要介绍的。
该示例是对我在实际项目中所遇到情形作了大量简化的结果。
This example is an extreme simplification of a situation I encountered in a real project.
图2中显示了我在一个转换示例中使用的uml模型。
Figure 2 shows a UML model that I used in one transformation example.
还可以为许多其它字段设置值;在本示例中,我使用了接近最少数量的字段。
There are many more fields for which a value could be set; I have used close to the bare minimum in this example.
但是,为了让事情更有趣,在我的示例中,只有EIS2支持分布式事务。
Making things more interesting, however, is the fact that in my example only EIS2 supports distributed transactions.
在我的示例中,我希望列出8行信息(图6)。
如这篇信息中心文章中所述,代理的sip侧有能力基于各种机制路由到集群,包括在我的示例中介绍的消息类型。
As described in this Information Center article, the SIP side of the proxy has the ability to route to a cluster based on a variety of mechanisms, including the message type explained in my example.
在本节中,我给出了大量的URL示例,它们可以帮助用户创建他们喜欢的URL。
In this section, I have identified a vast set of URL samples that can help your users to create a URL of their preference.
在本节我将考虑一些示例。
在介绍示例应用程序之前,我将讨论一些常用的ecs类。
Before I get to the sample application, I'll discuss some of the more commonly used ECS classes.
我把示例应用程序部署在Tomcatservlet容器中。
I deploy the example application in a Tomcat servlet container.
在示例中,我只为一个接口建立了动态代理类,这个接口是:user。
In the example, I created the dynamic proxy class for a single interface: User.
在我的示例中,该程序的上半部分完全是实现一个switch,允许从命令行手工选择要使用的后端。
In my example, the first half of the program is simply a switch to allow manual selection of the backend to use from the command-line.
在我的示例中,为保持模型整洁,我仅仅将这些值列举为拥有一个数据类型code。
In my example, to keep the model clean, I simply list these properties as having a data type code.
在清单12的示例中,我修改了相关按钮样式。
In the example shown in Listing 2, I modified the relevant button styles.
在我的示例代码中,我还写入了另一个xml文件(conversionsdelete . xml),以展示WebRowSet是如何以xml格式表示数据修改的。
In my sample code, I write to yet another XML file (conversionsdelete.xml) to show you how the WebRowSet represents our modification of the data in XML form.
在我的示例中,为了收集这些信息,我必须首先获取表示WSDL实现和WSDL接口的Definition对象。
In my example, in order to glean this information, I must first obtain Definition objects for both the WSDL implementation and the WSDL interface.
我在代码示例中使用EJB 3.0规范;同样的概念也适用于SpringFramework和JOTM。
I use the EJB 3.0 specification in my code examples; the concepts are the same for the Spring Framework and JOTM.
在接下来的示例中我将向您展示这些应用。
这些代码与本文中所有文档模型的代码在本质上是相同的,所以在剩余的示例中我将跳过它,不再做任何讨论。
This code is essentially the same for all the document models in this article, so I'll skip over it in the remaining examples without any discussion.
在我向您展示如何构建这个示例指示板前,可以从下载部分获得源文件并安装这个指示板。
Before I show you how to build the example dashboard, you might want to get the source files from Download and install the dashboard.
在本文中,我通过示例代码解释了概念。
Throughout the article, I provided sample code to illustrate concepts.
在本文中,我将通过一些示例引导您掌握这个相对简单的过程。
In this article, I'll take you through this relatively simple process with some examples.
在本示例中,我将根据比赛进行切分,因为我看到域是根据参加不同比赛的参赛者进行组织的。
In this case, I'm going to shard by race, because I see the domain being organized by runners who belong to RACES.
我将借助代码示例,介绍一些我在该领域中不断看到的和经历的常见事务陷阱,大部分是在生产环境中。
With the help of code examples, I'll introduce some of the common transaction pitfalls I continually see and experience in the field, in most cases in production environments.
应用推荐