【Zeroc ICE 存根文件的作用】

本文详细介绍了ICE Slice编译器为每个接口生成的各种源文件,包括客户端和服务端使用的不同类型的Java文件,如接口声明文件、持有者类型定义、代理接口定义等,并解释了这些文件的具体作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



 

ICE 存根文件的作用

The compiler generates quite few source files for each Slice interface. In

general, for an interface <interface-name>, the following source files are created

by the compiler:

1) <interface-name>.java

This source file declares the <interface-name> Java interface.

 

2) <interface-name>Holder.java

This source file defines a holder type for the interface 

 

3) <interface-name>Prx.java

This source file defines the <interface-name>Prx interface 

 

4) <interface-name>PrxHelper.java

This source file defines the helper type for the interface’s proxy 

 

5) <interface-name>PrxHolder.java

This source file defines the a holder type for the interface’s proxy 

 

6) <interface-name>Operations.java

7)  _<interface-name>OperationsNC.java

These source files each define an interface that contains the operations corre-

sponding to the Slice interface.

These are the files that contain code that is relevant to the client side. The

compiler also generates a file that is specific to the server side, plus three addi-

tional files:

 

8) _<interface-name>Disp.java

This file contains the definition of the server-side skeleton class.

 

 

9) _<interface-name>Del.java

10) _<interface-name>DelD.java

11)  _<interface-name>DelM.java

These files contain code that is internal to the Java mapping; they do not

contain any functions of relevance to application programmers.

 

12) Callback_<interface-name>_<Method>.java



 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值