关于做好2012年度协议供货和定点采购工作有关事项的通知 .doc
《关于做好2012年度协议供货和定点采购工作有关事项的通知 .doc》由会员分享,可在线阅读,更多相关《关于做好2012年度协议供货和定点采购工作有关事项的通知 .doc(7页珍藏版)》请在文库网上搜索。
1、in NamingNames can have different structures depending upon the implementation of the naming service. Consequently, CORBA name servers handle complex names by way of NameComponent objects. Each NameComponent holds a single part, or element, of the name. An array of NameComponent objects can hold a f
2、ully specified path to anobject on any computer file or disk system. To find the Hello server, you first need a NameComponent to hold an identifying string for the Hello server. Add this code directly below the call to narrow. NameComponent nc = new NameComponent(“Hello“, “);This statement sets the
3、id field of nc, the new NameComponent, to “Hello“ and the kind field to an empty string. Because the path to the Hello object has just one element, create a single-element array out of nc. The NamingContext.resolve method requires this array for its work: NameComponent path = nc;Finally, pass path t
4、o the naming services resolve method to get an object reference to the Hello server and narrow it to a Hello object: Hello helloRef = HelloHelper.narrow(ncRef.resolve(path);Here you see the HelloHelper helper class at work. The resolve method returns a generic CORBA object as you saw above when loca
5、ting the name service itself. Therefore, you immediately narrow it to a Hello object, which is the object reference you need to perform the rest of your work. Invoking the sayHello OperationCORBA invocations look like a method call on a local object. The complications of marshaling parameters to the
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 关于 做好 2012 年度 协议 供货 定点 采购 工作 有关 事项 通知