00001 package Sct.Corba;
00002
00003
00011 public class _RefCountServantStub extends org.omg.CORBA.portable.ObjectImpl implements Sct.Corba.RefCountServant
00012 {
00013
00014 public void addRef ()
00015 {
00016 org.omg.CORBA.portable.InputStream $in = null;
00017 try {
00018 org.omg.CORBA.portable.OutputStream $out = _request ("addRef", true);
00019 $in = _invoke ($out);
00020 return;
00021 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00022 $in = $ex.getInputStream ();
00023 String _id = $ex.getId ();
00024 throw new org.omg.CORBA.MARSHAL (_id);
00025 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00026 addRef ( );
00027 } finally {
00028 _releaseReply ($in);
00029 }
00030 }
00031
00032 public void removeRef ()
00033 {
00034 org.omg.CORBA.portable.InputStream $in = null;
00035 try {
00036 org.omg.CORBA.portable.OutputStream $out = _request ("removeRef", true);
00037 $in = _invoke ($out);
00038 return;
00039 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00040 $in = $ex.getInputStream ();
00041 String _id = $ex.getId ();
00042 throw new org.omg.CORBA.MARSHAL (_id);
00043 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00044 removeRef ( );
00045 } finally {
00046 _releaseReply ($in);
00047 }
00048 }
00049
00050
00051 private static String[] __ids = {
00052 "IDL:Sct/Corba/RefCountServant:1.0"};
00053
00054 public String[] _ids ()
00055 {
00056 return (String[])__ids.clone ();
00057 }
00058
00059 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00060 {
00061 String str = s.readUTF ();
00062 String[] args = null;
00063 java.util.Properties props = null;
00064 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00065 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00066 _set_delegate (delegate);
00067 }
00068
00069 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00070 {
00071 String[] args = null;
00072 java.util.Properties props = null;
00073 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00074 s.writeUTF (str);
00075 }
00076 }