_serverimplbase.java
来自「java jdk 1.4的源码」· Java 代码 · 共 92 行
JAVA
92 行
package com.sun.corba.se.ActivationIDL;
/**
* com/sun/corba/se/ActivationIDL/_ServerImplBase.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from ../../../../../../src/share/classes/com/sun/corba/se/ActivationIDL/activation.idl
* Wednesday, November 19, 2003 5:16:48 PM PST
*/
/** Server callback API, passed to Activator in active method. */
public abstract class _ServerImplBase extends org.omg.CORBA.portable.ObjectImpl
implements com.sun.corba.se.ActivationIDL.Server, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
public _ServerImplBase ()
{
}
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("shutdown", new java.lang.Integer (0));
_methods.put ("install", new java.lang.Integer (1));
_methods.put ("uninstall", 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 ())
{
/** Shutdown this server. Returns after orb.shutdown() completes. */
case 0: // ActivationIDL/Server/shutdown
{
this.shutdown ();
out = $rh.createReply();
break;
}
/** Install the server. Returns after the install hook completes * execution in the server. */
case 1: // ActivationIDL/Server/install
{
this.install ();
out = $rh.createReply();
break;
}
/** Uninstall the server. Returns after the uninstall hook * completes execution. */
case 2: // ActivationIDL/Server/uninstall
{
this.uninstall ();
out = $rh.createReply();
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:ActivationIDL/Server:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
} // class _ServerImplBase
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?