1 /* RegistryImpl_Skel.java
2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
39 // Skel class generated by rmic - DO NOT EDIT!
41 package gnu
.java
.rmi
.registry
;
43 public final class RegistryImpl_Skel
44 implements java
.rmi
.server
.Skeleton
46 private static final long interfaceHash
= 4905912898345647071L;
48 private static final java
.rmi
.server
.Operation
[] operations
= {
49 new java
.rmi
.server
.Operation("void bind(java.lang.String, java.rmi.Remote"),
50 new java
.rmi
.server
.Operation("java.lang.String[] list("),
51 new java
.rmi
.server
.Operation("java.rmi.Remote lookup(java.lang.String"),
52 new java
.rmi
.server
.Operation("void rebind(java.lang.String, java.rmi.Remote"),
53 new java
.rmi
.server
.Operation("void unbind(java.lang.String")
56 public java
.rmi
.server
.Operation
[] getOperations() {
57 return ((java
.rmi
.server
.Operation
[]) operations
.clone());
60 public void dispatch(java
.rmi
.Remote obj
, java
.rmi
.server
.RemoteCall call
, int opnum
, long hash
) throws java
.lang
.Exception
{
62 if (hash
== 7583982177005850366L) {
65 else if (hash
== 2571371476350237748L) {
68 else if (hash
== -7538657168040752697L) {
71 else if (hash
== -8381844669958460146L) {
74 else if (hash
== 7305022919901907578L) {
78 throw new java
.rmi
.server
.SkeletonMismatchException("interface hash mismatch");
81 else if (hash
!= interfaceHash
) {
82 throw new java
.rmi
.server
.SkeletonMismatchException("interface hash mismatch");
85 gnu
.java
.rmi
.registry
.RegistryImpl server
= (gnu
.java
.rmi
.registry
.RegistryImpl
)obj
;
89 java
.lang
.String $param_0
;
90 java
.rmi
.Remote $param_1
;
92 java
.io
.ObjectInput in
= call
.getInputStream();
93 $param_0
= (java
.lang
.String
)in
.readObject();
94 $param_1
= (java
.rmi
.Remote
)in
.readObject();
97 catch (java
.io
.IOException e
) {
98 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
100 catch (java
.lang
.ClassCastException e
) {
101 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
104 call
.releaseInputStream();
106 server
.bind($param_0
, $param_1
);
108 java
.io
.ObjectOutput out
= call
.getResultStream(true);
110 catch (java
.io
.IOException e
) {
111 throw new java
.rmi
.MarshalException("error marshalling return", e
);
119 java
.io
.ObjectInput in
= call
.getInputStream();
122 catch (java
.io
.IOException e
) {
123 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
126 call
.releaseInputStream();
128 java
.lang
.String
[] $result
= server
.list();
130 java
.io
.ObjectOutput out
= call
.getResultStream(true);
131 out
.writeObject($result
);
133 catch (java
.io
.IOException e
) {
134 throw new java
.rmi
.MarshalException("error marshalling return", e
);
141 java
.lang
.String $param_0
;
143 java
.io
.ObjectInput in
= call
.getInputStream();
144 $param_0
= (java
.lang
.String
)in
.readObject();
147 catch (java
.io
.IOException e
) {
148 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
150 catch (java
.lang
.ClassCastException e
) {
151 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
154 call
.releaseInputStream();
156 java
.rmi
.Remote $result
= server
.lookup($param_0
);
158 java
.io
.ObjectOutput out
= call
.getResultStream(true);
159 out
.writeObject($result
);
161 catch (java
.io
.IOException e
) {
162 throw new java
.rmi
.MarshalException("error marshalling return", e
);
169 java
.lang
.String $param_0
;
170 java
.rmi
.Remote $param_1
;
172 java
.io
.ObjectInput in
= call
.getInputStream();
173 $param_0
= (java
.lang
.String
)in
.readObject();
174 $param_1
= (java
.rmi
.Remote
)in
.readObject();
177 catch (java
.io
.IOException e
) {
178 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
180 catch (java
.lang
.ClassCastException e
) {
181 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
184 call
.releaseInputStream();
186 server
.rebind($param_0
, $param_1
);
188 java
.io
.ObjectOutput out
= call
.getResultStream(true);
190 catch (java
.io
.IOException e
) {
191 throw new java
.rmi
.MarshalException("error marshalling return", e
);
198 java
.lang
.String $param_0
;
200 java
.io
.ObjectInput in
= call
.getInputStream();
201 $param_0
= (java
.lang
.String
)in
.readObject();
204 catch (java
.io
.IOException e
) {
205 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
207 catch (java
.lang
.ClassCastException e
) {
208 throw new java
.rmi
.UnmarshalException("error unmarshalling arguments", e
);
211 call
.releaseInputStream();
213 server
.unbind($param_0
);
215 java
.io
.ObjectOutput out
= call
.getResultStream(true);
217 catch (java
.io
.IOException e
) {
218 throw new java
.rmi
.MarshalException("error marshalling return", e
);
224 throw new java
.rmi
.UnmarshalException("invalid method number");