A good programming practice often involves explicitly defining checked user exceptions as part of the interface contract.
良好的编程实践通常包括显式地定义已检查用户异常作为接口契约的一部分。
A service exposes an interface contract, which defines the behavior of the service and the messages it accepts and returns.
服务公开了一个接口契约,它定义了服务的行为以及接受和返回的消息。
The interface contract between the portal and each system is designed and documented during the design phase of your methodology.
门户和每一个系统之间的接口约定是在方法的设计阶段设计和记录的。
One of the major benefits of Design by Contract is that it provides explicit information within the interface or class itself about expected behavior.
契约式设计的一个主要优势是,它在接口或类本身当中提供了关于预期行为的显式信息。
This interface defines a contract with three methods, as shown in Listing 1.
这个接口定义了一个有三个方法的合约,如清单1所示。
This interface defines the contract between the class and any of its clients.
此接口将在类与其所有使用者之间定义契约。
Methods inside nonpublic classes that are never actually invoked but must be implemented in order to satisfy the contract of an interface.
非公共类中的一些方法,它们永远也不会被实际调用,只是为了满足某个接口契约而必须实现。
Not according to the contract of the process interface. That only requires that code be accompanied by tests.
不一定要按照过程接口的契约,只是要求代码都有单元测试。
Also note that a completely machine-readable description of a contract for a remote interface is a fallacy.
同样需要注意,为远程接口描述一个完全机器可读的描述契约是一种谬论。
When SOA was considered an integration technology, developers and even architects used to think about service interface as of a service contract with the outside world.
在SOA被认为是一种集成技术的日子里,开发者(甚至连架构师)都把服务接口认为是与外部世界签订的服务契约。
Rewriting code alters the behavior and even the contract of code, while refactoring preserves its outward interface.
重写代码会修改代码的行为甚至合约,而重构保持对外接口不变。
The advantage of the interface mechanism is that you can put together a contract quickly without implementing any of the methods.
接口机制的优点是可以将契约快速集中在一起而无须实现任何方法。
In this use case, the system interface component is the implementation of such as contract.
在此用例中,系统接口组件是契约之类内容的实现。
If we leave aside the uniform interface and the dynamic aspects of the contract, we can describe the rest of the contract in a machine-readable manner.
要是我们把统一接口和契约的动态方面搁置一边,我们可以用机器可读方式描述契约的剩余部分。
That's what interface inheritance means; if you fulfill the contract of the more derived type then you are required to also fulfill the contract of the less derived type.
接口继承就是这样的;如果你要满足派生程度较高的类型的契约的话,你就必须要满足派生程度较低的类型。
Replaceability: Having defined a contract or interface, you need to be able to replace the module without breaking the system.
可替换性:定义了合约或接口后,您需要能够替换模块而不影响系统。
In Object Oriented Analysis and Design Methodology, a system interface is most often viewed as a contract.
在面向对象的分析和设计方法中,系统接口通常被视为契约。
As the operations offered by the classes are the same, you can use an interface to define a contract that all of your classes implement.
由于这些类提供的操作相同,您可以使用一个接口来定义一个所有类实现的协定。
A good way to think about an IDL interface is that it specifies a software contract between a service implementation and the clients that will use it.
有一个好方法来理解IDL接口:它指定了服务实现和使用它的客户机之间的软件约定。
Even if they were, this wouldn't be a real solution to the Expression Problem, because you can't add the Fulfillment interface to the existing Order and Contract classes.
即使它们是,这也将不是针对表达式问题的真实解决方案,因为您不能将Fulfillment接口添加到现有的Order和contract类中。
The application contract defines a standard application programming interface that enables applications to use each resource adapter consistently.
应用程序协约定义了一个标准的应用程序编程接口,使应用程序能够以一致的方式使用每个资源适配器。
To do this, you'd need to modify the source code for Order and Contract to implement the new interface.
要做到这一点,您需要修改Order和Contract的源代码,以便实现新的接口。
For modeling a Service Contract, you can apply the Service Contract stereotype (Figure 4) on a class or an interface.
为了对ServiceContract建模,您可以在一个类或者界面上应用Service Contract构造型(图4)。
This is because there is no protocol in the Scheduling service interface; therefore, no contract is needed for the connector.
这是因为在Scheduling服务接口中没有协议,所以该连接器不需要契约。
Infoq: in your book you are equating service interface to service contract and suggest to use WSDL for both.
InfoQ:您在这本书里将服务接口和服务契约等同起来,并建议二者都使用WSDL。
Using annotations, Contract4J defines a pattern-like protocol, a kind-of interface, for expressing contract information.
使用标注,Contract4J定义了模式形式的协议,即一种接口,用来表达合约信息。
The service contract, a SOA pattern according to Figure 3, is the SOA instantiation of an interface; hence, the general issue called "Interface signature?"
根据图3所示的SOA模式,服务契约是SOA接口的实例化;因此,根据图2,通用问题“接口签名是什么?
Depending on the what type of access service provides (RPC vs. Messsaging), its contract is defined either in the form of interface (RPC) or message (Messaging) contract (see Table 1).
根据服务提供的访问类型(RPCvs .消息传递),它的契约被定义成接口(RPC)或消息(消息传递)契约形式(参见表1)。
The IComponent interface is the fundamental contract between the design-time environment and an element to be hosted on a design surface (such as the Visual Studio forms designer).
IComponent接口是设计时环境和要在设计图面(例如,VisualStudio窗体设计器)上承载的元素之间的基本协定。
WAI-ARIA ACTS like a contract between the ATs and the Web user interface, which brings more rich information such as roles and states to the Web page user interface.
WAI- ARIA充当AT和Web用户界面之间的协议,这为Web页面用户界面带来了更加丰富的信息,比如角色和状态。
应用推荐