第五讲CORBA.pptVIP

  • 16
  • 0
  • 约1.56万字
  • 约 75页
  • 2017-03-26 发布于上海
  • 举报
第五讲CORBA

IDL接口定义分布对象显露的细节 每个IDL接口定义了一个新对象类型 操作基调(Signature) 是接口的核心 是服务请求的入口点 接口 清晰地划分了服务的实现与客户之间的边界 接口的不足之处:未显示代码之间的关系 (4) IDL 接口 (Interface) 例子: Interface Account { //Account definitions } Interface Cheking: Account { //Inherits all Account definitions //adds Checking definitions }; Interface Saving: Account { //Inherits all Account definitions //adds Savings definitions }; IDL 支持多继承 操作基调(Signature)的一般形式为: [oneway]op_type_specidentifier(param1,...,paramL) [raises(except1,...,exceptN)][context(name1,...,nameM)] 其中: · 可选的oneway关键字指示对该操作的请求预期获得最佳效果 语义;如果

文档评论(0)

1亿VIP精品文档

相关文档