_hellostub.java

来自「演示了如何在java平台使用corba」· Java 代码 · 共 37 行

JAVA
37
字号
/*
 * File: ./HELLOAPP/_HELLOSTUB.JAVA
 * From: HELLO.IDL
 * Date: Tue Apr 18 12:03:21 2000
 *   By: idltojava Java IDL 1.2 Aug 18 1998 16:25:34
 */

package HelloApp;
public class _HelloStub
	extends org.omg.CORBA.portable.ObjectImpl
    	implements HelloApp.Hello {

    public _HelloStub(org.omg.CORBA.portable.Delegate d) {
          super();
          _set_delegate(d);
    }

    private static final String _type_ids[] = {
        "IDL:HelloApp/Hello:1.0"
    };

    public String[] _ids() { return (String[]) _type_ids.clone(); }

    //	IDL operations
    //	    Implementation of ::HelloApp::Hello::sayHello
    public String sayHello()
 {
           org.omg.CORBA.Request r = _request("sayHello");
           r.set_return_type(org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
           r.invoke();
           String __result;
           __result = r.return_value().extract_string();
           return __result;
   }

};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?