【Java开源代码栏目提醒】:网学会员鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“_HelloImplBase.java”一文,供大家参考学习
package HelloApp;
/**
* HelloApp/_HelloImplBase.java
* Generated by the IDL-to-Java compiler (portable), version "3.0"
* from D:/javapro/jCorba/jCorba/hello.idl
* 2002年10月31日 17时35分02秒 CST
*/
public abstract class _HelloImplBase extends org.omg.CORBA.portable.ObjectImpl
implements HelloApp.Hello, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
public _HelloImplBase ()
{
}
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("sayHello", new java.lang.Integer (0));
}
public org.omg.CORBA.portable.OutputStream _invoke (String method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler rh)
{
org.omg.CORBA.portable.OutputStream out = null;
java.lang.Integer __method = (java.lang.Integer)_methods.get (method);
if (__method == null)
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
switch (__method.intValue ())
{
case 0: // HelloApp/Hello/sayHello
{
String __result = null;
__result = this.sayHello ();
out = rh.createReply();
out.write_string (__result);
break;
}
default:
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:HelloApp/Hello:1.0"};
public String[] _ids ()
{
return __ids;
}
} // class _HelloImplBase