图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.
抓住下面相同的实例,并从用例的角度出发来驱动测试,你就会得到完全不为同的情形。
Take the same underlying instances and drive the test from the Use Case point of view and you get quite a different picture.
现在已经定义了元数据,接下来我们将开始创建或加载实际数据实例,如此例中名为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.
如您所知,样例流程是一个长期流程,就是说,可能有多个实例运行在生产服务器上。
As you know, the sample process is a long-run process, which means there may be many instances running on the production server.
该例表明,你可以对你需要的单个资源进行访问控制,甚至深入到非常细粒度的实例级别。
This example shows that you can control, even down to a very fine-grained instance level, access to individual resources if you needed to.
该例中的数据模型是根据清单1模式定义的一个如清单2所示的实例。
In this case the data model is an instance like Listing 2 based on the schema in Listing 1.
相反,实例被分配实源自例的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.
您初始的需求是以高层用例的形式获得的,图2中显示了一个实例。
Your initial requirements are captured in the form of high-level use cases, an example of which is shown in Figure 2.
上图显示了为实现实例用例所必需的所有对不同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.
以存储空间为例,可以通过配置嵌入式Informix实例监视磁盘使用量,当任何DBspace消耗了分配给它的空间的80%时,自动地添加存储空间。
Using the example of storage space, the embedded Informix instance could be configured to monitor disk usage and add more storage when any DBspace consumes 80 percent of its allocated space.
请注意,要实现该例应用程序必须能够创建标准事件的实例(这里是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).
样例应用程序使用SystemClock来获取被初始化为系统时间的LocalDate的实例。
The sample application USES the SystemClock to obtain an instance of LocalDate initialized to the system time.
第二个用例涉及到了只与某个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.
尽管未对数据执行序列化,但是当作为模板的一部分创建实例时,样例必须实现这个方法来涵盖组件初始化。
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.
这里有一个实例:星期二的构建只包含打算在此构建上通过的测试用例。
Here's an example: Tuesday's build contains only the test cases that are supposed to pass on this build.
单例模式是一种有用的控制类访问的途径,他能保证只有一个类实例存在。
Singletons are a useful way to control access to a class, making sure that only one instance can exist.
我还要用到这里描述的样本用例,通过减少远程调用的数量优化实例的性能。
I will use the sample use case described here and optimize its performance by reducing the number of remote calls.
如果你确实执行了用例驱动式开发,那么使用场景就是一个典型的完整用例情景的实例,或者用例情景的一部分。
If you do use-case driven development, a usage scenario is typically an instance of a complete use case scenario, or a portion of the use case scenario.
应用推荐