业务用例定义了一组业务用例实例。
A business use case defines a set of business use-case instances.
图5:用分配给项目的在开发中的组件的颜色建模的用例实例。
Figure 5: Example of use case modeling with color assignments to the components under development for the project.
相反您可以定义一个对象(而不是类)并且它将成为类的一个单例实例。
Instead you can define some as an object (instead of a class) and it becomes a singleton instance of the class.
因此,除非仔细计划,否则应该避免使用JAX - RS资源的单例实例。
Therefore, use of a singleton instance for JAX-RS resources should be avoided unless carefully planned.
由于子类的实例也是单例类的实例,所以可能出现多个单例实例并存的情况。
Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.
尽管用例获取用户和任务的一般化观点,但是依据具体的工作流,情境描述具体的用例实例。
Whereas use cases capture a generalized view of a user and a task, scenarios describe a specific instance of a use case in terms of a concrete workflow.
在用例实例中,执行CartWrapperService,它作为封装器运行,把客户端的服务调用转换为对最初的Home组件的调用。
In the use case example, you implement a CartWrapperService that functions as a wrapper and converts the service call coming from the client to calls to the original Home components.
虽然所有Spring管理对象都被默认地当作单例实例来处理,但有些时候还是有必要为某个对象指明一个备用的范围(scope)。
While all Spring-managed objects are treated as singleton instances by default, it is sometimes necessary to specify an alternate "scope" for an object.
在购物车用例实例中,您必须假设对于每个对象您都有一张表,这些对象是指:Cart、CartItem、Article和ArticleDescription。
In the shopping cart use case example you must assume that you have a table for each of the objects cart, CartItem, Article, and ArticleDescription.
行为图的实例是活动图,用例图和序列图。
Example behavior diagrams are activity, use case, and sequence diagrams.
抓住下面相同的实例,并从用例的角度出发来驱动测试,你就会得到完全不为同的情形。
Take the same underlying instances and drive the test from the Use Case point of view and you get quite a different picture.
一个用例可能的实例数量取决于这些变量。
The number of (possible) instances of a use case depends on these variables.
该实例讨论了从远程系统中读取购物车的用例。
This example discusses the use case of reading a shopping cart from a remote system.
现在已经定义了元数据,接下来我们将开始创建或加载实际数据实例,如此例中名为ACME的实际公司。
The metadata is now defined, so we can move on to creating or loading actual data instances, such as the real company, which, for this example, is named ACME.
一个场景是用例的一个实例。
相反,实例被分配实源自例的IP地址派生的任意名称。
Instead, the instances are assigned arbitrary names derived from the IP address of the instance.
由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.
该例中的游标被定义在xml实例的开头。
Here, the cursor is defined at the beginning of the XML instance.
上图显示了为实现实例用例所必需的所有对不同home组件的调用。
The diagram shows all calls to the different Home components needed to implement the example use case.
此类提供了一组类或一组单例(singleton)对象实例,在一个JAX-RS应用程序内包括所有的根级别的资源和提供程序(由 @Provider注释的类)。
This class provides a set of classes, or a set of singleton object instances, that include all of the root-level resources and providers (classes annotated with @Provider) in a JAX-RS application.
请注意,要实现该例应用程序必须能够创建标准事件的实例(这里是Comment)。
Note that in order to implement this example, the application must be able to create instances of standard events (a Comment, in this case).
第二个用例涉及到了只与某个Portlet实例有关的缓存数据,并且数据是特定于 Portlet 窗口的。
The second use case involves caching data which is only relevant for one portlet instance, and the data is specific to a portlet window.
对于该例,我们创建一个实例,因此选择CreateaDB 2instance并单击Next。
For this example you want to create an instance, so select create a DB2 instance and click Next.
按用例分组(实例:实现已知用例的类分为一组)。
Grouping by use case (example: the classes that implement a given use case are grouped).
选择测试服务器实例,将要在此实例上执行测试用例。
Select the test server instance upon which to execute the test case.
尽管未对数据执行序列化,但是当作为模板的一部分创建实例时,样例必须实现这个方法来涵盖组件初始化。
Although no data was serialized, the sample must implement this method to cover the component initialization when the instance is created as part of a template.
在一个迭代过程之中,如果关注的是完成每一个实例或者有限的实例(或者特定的用例场景),团队一次尽可能少地处理实例。
Within an iteration, if the focus is on completing each story or a limited set of stories in turn (or specific use case scenarios), with the team working on as few stories at one time as possible.
该特性提供了一个简洁的方法,用之表述一组实例,以在运行中的单个测试用例中使用。
This feature gives you a succinct way to express a set of examples to be used in running individual test cases.
图2显示了使用测试用例范畴的实例。
我还要用到这里描述的样本用例,通过减少远程调用的数量优化实例的性能。
I will use the sample use case described here and optimize its performance by reducing the number of remote calls.
应用推荐