📄 lightbulbpoa.java
字号:
/**
* LightBulbPOA.java .
* 由 IDL-to-Java 编译器(可移植),版本 "3.2" 生成
* 来自 LightBulb.idl
* 2006年4月2日 星期日 上午11时11分15秒 CST
*/
public abstract class LightBulbPOA extends org.omg.PortableServer.Servant
implements LightBulbOperations, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("on", new java.lang.Integer (0));
_methods.put ("off", new java.lang.Integer (1));
_methods.put ("isOn", new java.lang.Integer (2));
}
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: // LightBulb/on
{
try {
this.on ();
out = $rh.createReply();
} catch (BulbBrokenException $ex) {
out = $rh.createExceptionReply ();
BulbBrokenExceptionHelper.write (out, $ex);
}
break;
}
case 1: // LightBulb/off
{
this.off ();
out = $rh.createReply();
break;
}
case 2: // LightBulb/isOn
{
try {
boolean $result = false;
$result = this.isOn ();
out = $rh.createReply();
out.write_boolean ($result);
} catch (BulbBrokenException $ex) {
out = $rh.createExceptionReply ();
BulbBrokenExceptionHelper.write (out, $ex);
}
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:LightBulb:1.0"};
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
{
return (String[])__ids.clone ();
}
public LightBulb _this()
{
return LightBulbHelper.narrow(
super._this_object());
}
public LightBulb _this(org.omg.CORBA.ORB orb)
{
return LightBulbHelper.narrow(
super._this_object(orb));
}
} // class LightBulbPOA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -