169N/A/*
2362N/A * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A// Stub class generated by rmic, do not edit.
0N/A// Contents subject to change without notice.
0N/A
0N/Apublic final class ModifyDescriptor_Stub
0N/A extends java.rmi.server.RemoteStub
0N/A implements ActivateMe
0N/A{
0N/A private static final java.rmi.server.Operation[] operations = {
169N/A new java.rmi.server.Operation("java.rmi.activation.ActivationID getID()"),
169N/A new java.rmi.server.Operation("java.lang.String getMessage()"),
169N/A new java.rmi.server.Operation("java.lang.String getProperty(java.lang.String)"),
169N/A new java.rmi.server.Operation("void shutdown()")
0N/A };
169N/A
0N/A private static final long interfaceHash = 7998207954486691383L;
169N/A
0N/A private static final long serialVersionUID = 2;
169N/A
0N/A private static boolean useNewInvoke;
0N/A private static java.lang.reflect.Method $method_getID_0;
0N/A private static java.lang.reflect.Method $method_getMessage_1;
0N/A private static java.lang.reflect.Method $method_getProperty_2;
0N/A private static java.lang.reflect.Method $method_shutdown_3;
169N/A
0N/A static {
169N/A try {
169N/A java.rmi.server.RemoteRef.class.getMethod("invoke",
169N/A new java.lang.Class[] {
169N/A java.rmi.Remote.class,
169N/A java.lang.reflect.Method.class,
169N/A java.lang.Object[].class,
169N/A long.class
169N/A });
169N/A useNewInvoke = true;
169N/A $method_getID_0 = ActivateMe.class.getMethod("getID", new java.lang.Class[] {});
169N/A $method_getMessage_1 = ActivateMe.class.getMethod("getMessage", new java.lang.Class[] {});
169N/A $method_getProperty_2 = ActivateMe.class.getMethod("getProperty", new java.lang.Class[] {java.lang.String.class});
169N/A $method_shutdown_3 = ActivateMe.class.getMethod("shutdown", new java.lang.Class[] {});
169N/A } catch (java.lang.NoSuchMethodException e) {
169N/A useNewInvoke = false;
169N/A }
0N/A }
169N/A
0N/A // constructors
0N/A public ModifyDescriptor_Stub() {
169N/A super();
0N/A }
0N/A public ModifyDescriptor_Stub(java.rmi.server.RemoteRef ref) {
169N/A super(ref);
0N/A }
169N/A
0N/A // methods from remote interfaces
169N/A
0N/A // implementation of getID()
0N/A public java.rmi.activation.ActivationID getID()
169N/A throws java.rmi.RemoteException
0N/A {
169N/A try {
169N/A if (useNewInvoke) {
169N/A Object $result = ref.invoke(this, $method_getID_0, null, -7795865521150345044L);
169N/A return ((java.rmi.activation.ActivationID) $result);
169N/A } else {
169N/A java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
169N/A ref.invoke(call);
169N/A java.rmi.activation.ActivationID $result;
169N/A try {
169N/A java.io.ObjectInput in = call.getInputStream();
169N/A $result = (java.rmi.activation.ActivationID) in.readObject();
169N/A } catch (java.io.IOException e) {
169N/A throw new java.rmi.UnmarshalException("error unmarshalling return", e);
169N/A } catch (java.lang.ClassNotFoundException e) {
169N/A throw new java.rmi.UnmarshalException("error unmarshalling return", e);
169N/A } finally {
169N/A ref.done(call);
169N/A }
169N/A return $result;
169N/A }
169N/A } catch (java.lang.RuntimeException e) {
169N/A throw e;
169N/A } catch (java.rmi.RemoteException e) {
169N/A throw e;
169N/A } catch (java.lang.Exception e) {
169N/A throw new java.rmi.UnexpectedException("undeclared checked exception", e);
169N/A }
0N/A }
169N/A
0N/A // implementation of getMessage()
0N/A public java.lang.String getMessage()
169N/A throws java.rmi.RemoteException
0N/A {
169N/A try {
169N/A if (useNewInvoke) {
169N/A Object $result = ref.invoke(this, $method_getMessage_1, null, 5353407034680111516L);
169N/A return ((java.lang.String) $result);
169N/A } else {
169N/A java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
169N/A ref.invoke(call);
169N/A java.lang.String $result;
169N/A try {
169N/A java.io.ObjectInput in = call.getInputStream();
169N/A $result = (java.lang.String) in.readObject();
169N/A } catch (java.io.IOException e) {
169N/A throw new java.rmi.UnmarshalException("error unmarshalling return", e);
169N/A } catch (java.lang.ClassNotFoundException e) {
169N/A throw new java.rmi.UnmarshalException("error unmarshalling return", e);
169N/A } finally {
169N/A ref.done(call);
169N/A }
169N/A return $result;
169N/A }
169N/A } catch (java.lang.RuntimeException e) {
169N/A throw e;
169N/A } catch (java.rmi.RemoteException e) {
169N/A throw e;
169N/A } catch (java.lang.Exception e) {
169N/A throw new java.rmi.UnexpectedException("undeclared checked exception", e);
169N/A }
0N/A }
169N/A
0N/A // implementation of getProperty(String)
0N/A public java.lang.String getProperty(java.lang.String $param_String_1)
169N/A throws java.rmi.RemoteException
0N/A {
169N/A try {
169N/A if (useNewInvoke) {
169N/A Object $result = ref.invoke(this, $method_getProperty_2, new java.lang.Object[] {$param_String_1}, 77249282285080913L);
169N/A return ((java.lang.String) $result);
169N/A } else {
169N/A java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 2, interfaceHash);
169N/A try {
169N/A java.io.ObjectOutput out = call.getOutputStream();
169N/A out.writeObject($param_String_1);
169N/A } catch (java.io.IOException e) {
169N/A throw new java.rmi.MarshalException("error marshalling arguments", e);
169N/A }
169N/A ref.invoke(call);
169N/A java.lang.String $result;
169N/A try {
169N/A java.io.ObjectInput in = call.getInputStream();
169N/A $result = (java.lang.String) in.readObject();
169N/A } catch (java.io.IOException e) {
169N/A throw new java.rmi.UnmarshalException("error unmarshalling return", e);
169N/A } catch (java.lang.ClassNotFoundException e) {
169N/A throw new java.rmi.UnmarshalException("error unmarshalling return", e);
169N/A } finally {
169N/A ref.done(call);
169N/A }
169N/A return $result;
169N/A }
169N/A } catch (java.lang.RuntimeException e) {
169N/A throw e;
169N/A } catch (java.rmi.RemoteException e) {
169N/A throw e;
169N/A } catch (java.lang.Exception e) {
169N/A throw new java.rmi.UnexpectedException("undeclared checked exception", e);
169N/A }
0N/A }
169N/A
0N/A // implementation of shutdown()
0N/A public void shutdown()
169N/A throws java.lang.Exception
0N/A {
169N/A if (useNewInvoke) {
169N/A ref.invoke(this, $method_shutdown_3, null, -7207851917985848402L);
169N/A } else {
169N/A java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 3, interfaceHash);
169N/A ref.invoke(call);
169N/A ref.done(call);
169N/A }
0N/A }
0N/A}