- package com.sun.corba.se.ActivationIDL;
-
-
- /**
- * com/sun/corba/se/ActivationIDL/_InitialNameServiceImplBase.java .
- * Generated by the IDL-to-Java compiler (portable), version "3.1"
- * from ../../../../../../src/share/classes/com/sun/corba/se/ActivationIDL/activation.idl
- * Sunday, February 22, 2004 11:21:42 PM PST
- */
-
- public abstract class _InitialNameServiceImplBase extends org.omg.CORBA.portable.ObjectImpl
- implements com.sun.corba.se.ActivationIDL.InitialNameService, org.omg.CORBA.portable.InvokeHandler
- {
-
- // Constructors
- public _InitialNameServiceImplBase ()
- {
- }
-
- private static java.util.Hashtable _methods = new java.util.Hashtable ();
- static
- {
- _methods.put ("bind", 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 ())
- {
-
- // bind initial name
- case 0: // ActivationIDL/InitialNameService/bind
- {
- try {
- String name = in.read_string ();
- org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
- boolean isPersistant = in.read_boolean ();
- this.bind (name, obj, isPersistant);
- out = $rh.createReply();
- } catch (com.sun.corba.se.ActivationIDL.InitialNameServicePackage.NameAlreadyBound $ex) {
- out = $rh.createExceptionReply ();
- com.sun.corba.se.ActivationIDL.InitialNameServicePackage.NameAlreadyBoundHelper.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:ActivationIDL/InitialNameService:1.0"};
-
- public String[] _ids ()
- {
- return (String[])__ids.clone ();
- }
-
-
- } // class _InitialNameServiceImplBase