清单5展示了上述模式的一个实例。
您还将把该模式的一个实例部署到代理中,并使用MessageBrokerTestClient测试该模式实例。
You will deploy an instance of this pattern to the broker and exercise the pattern instance using the Message broker Test Client.
此外,您还将部署ServiceFacade toWebSphereMQ:request-response模式的一个实例,它同样将Web服务请求写到 WebSphere MQ 队列。
You will also deploy an instance of the Service Facade to WebSphere MQ: request-response pattern, which also writes Web service requests to a WebSphere MQ queue.
要创建ServiceFacade toWebSphereMQ:one - waywith acknowledgment模式的一个实例,在模式说明的底部单击CreateNewInstance。
To create an instance of the Service Facade to WebSphere MQ: one-way with acknowledgment pattern, click on create New instance at the bottom of the pattern specification.
它使用一个推进信息传播模式,更改通知,这意味着,在一个浏览器实例的活动,将会立即反映在其他情况。
It USES a push messaging model to propagate change notifications, which means that activity in one instance of the browser will be reflected immediately in other instances.
在本文后面的部分中,您将找到有关应用模式的更多信息,以及一个实例。
You'll find more information about applying patterns, along with an example, later in this article.
以上是清单1 所示模式的一个简单的XML文档实例。
This is a simple XML document instance of the schema from Listing 1.
假设,一个给定的机构要求一个实例文档中必须出现特定的一些信息,而这却被HL 7CDAXML模式视为可选。
Suppose a given institution requires certain information be present in an instance document that is considered optional by the HL7 CDA XML schema.
执行此操作将会在模型浏览器中生成一个Singleton模式的实例。
Doing so creates an instance of the Singleton Pattern in the Model Explorer.
如其名称所暗示的,当您想要特别类的仅仅一个实例时,才使用Singleton模式。
As its name suggests, the Singleton Pattern is typically used when you want only one instance of a particular class.
其他一些映射器要求指定一个列六次:在模式、getter、setter、模型的实例变量、“from”映射和 “to” 映射中。
Some other mappers force you to specify a column six times: in the schema, the getter, the setter, the model's instance variable, the "from" mapping, and the "to" mapping.
在下一版本的模式中,如果添加了一个telephone元素,那么该实例就变成无效。
In the next version of the schema, if a telephone element is added, then this instance becomes invalid.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
在下面的部分中,我将介绍前面提到过的那个简单实例,它读取一个购物车并进行分析,找出提高性能的模式。
In the following section, I will introduce the already mentioned simple example of reading a shopping cart and analyzing it to find patterns that improve performance.
在其他实例中,此模式也是有用的,包括登录和打印,例如,当您想要一个能够每次访问并控制一个特别打印机的类实例。
Other instances in which this pattern is useful include logging and printing, such as when you want only one instance of a class to access and control one particular printer at a time.
单例模式是一种非常有用的设计模式,它允许你的类对外只提供一个实例,但是常犯的错误在于不止一个实例被创建。
The singleton is a useful design pattern for allowing only one instance of your class, but common mistakes can inadvertently allow more than one instance to be created.
清单2展示了一个XML模式实例中的初始元素和属性的层次结构。
Listing 2 demonstrates the initial elements and attributes of the hierarchy within an XML schema instance.
为了成功地支持这个模式,需要清楚地定义一个用于创建所需的数据库和表的过程,每次部署新的模式实例时必须遵守这个过程。
To support this pattern successfully, you need to clearly define a process to create the required databases and tables which must be followed every time a new pattern instance is deployed.
在每个sdo实例的中心都有一个模式,用于定义所允许的数据对象结构。
At the heart of every SDO instance is a model that defines the permitted structure of a data object.
事实上,XML模式为模式定义文档定义了一个词汇表,为在实例文档中出现的模式项或该模式定义的数据定义了另一个词汇表。
In fact, XML schema defines one vocabulary for the schema definition document, and another vocabulary for schema items that occur in the instance documents or data defined by the schema.
对于设计模式为什么重要的不同问题,考虑一个管理列表的简单实例。
For a different spin on why design patterns are important, consider the simple example of managing a list.
字符表示匹配前面模式元素的零个或一个实例,* 字符表示匹配前面元素的零个或多个实例。
The ? character means to match zero or one instance of the previous pattern element; the * character means to match zero or more of the previous element.
该实现是模式中的消息传递中介系统的一个变体实例,如 POSA 模式文档中所述。
The implementation was an instance of the message passing broker system variant of the pattern, as in the POSA pattern documentation.
单例模式是一种有用的控制类访问的途径,他能保证只有一个类实例存在。
Singletons are a useful way to control access to a class, making sure that only one instance can exist.
比如数据库连接池就是单例设计模式的一个例子:我们一般不想让应用程序具有连接池类的多个资源密集型实例。
An example use case for a singleton would be a database connection pool: you don't want your application to have multiple resource-intensive instances of a connection pool class.
这里有一个问题:如何知道清单2所示的这个XML文档就是清单1内所定义的XML模式的一个恰当实例呢?
Here is the question: How do you know that the XML document in Listing 2 is a proper instance of the schema defined in Listing 1?
第一个实例的实现使用的是最初的设计方法,由于是按标准使用模式提出的,表明它不是最佳的访问模式,因此会引起性能问题。
The first example implementation uses a technique where the initial design, as proposed by the standards used, suggests a non-optimal access pattern and causes performance problems.
该例中的数据模型是根据清单1模式定义的一个如清单2所示的实例。
In this case the data model is an instance like Listing 2 based on the schema in Listing 1.
一个XML实例文档可能引用多个名称空间的元素名,这些名称空间定义在不同模式中。
An XML instance document may refer to names of elements from multiple namespaces that are defined in multiple schemas.
这是一个可用来创建单例类实例确不需要为每个特定的类重写单例模式代码的可重用的类。
This is a class that can be used repeatedly to instantiate a class as a singleton without having to re-write the singleton pattern code for that specific class.
应用推荐