📄 calculatorpoa.java
字号:
package calc;
/**
* calc/calculatorPOA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from calculator.idl
* 2005年6月15日 星期三 上午09时56分48秒 CST
*/
public abstract class calculatorPOA extends org.omg.PortableServer.Servant
implements calc.calculatorOperations, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("add", 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: // calc/calculator/add
{
int x = in.read_long ();
int y = in.read_long ();
int $result = (int)0;
$result = this.add (x, y);
out = $rh.createReply();
out.write_long ($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:calc/calculator:1.0"};
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
{
return (String[])__ids.clone ();
}
public calculator _this()
{
return calculatorHelper.narrow(
super._this_object());
}
public calculator _this(org.omg.CORBA.ORB orb)
{
return calculatorHelper.narrow(
super._this_object(orb));
}
} // class calculatorPOA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -