You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yoko-commits@incubator.apache.org by en...@apache.org on 2006/09/21 11:22:04 UTC
svn commit: r448517 - in /incubator/yoko/trunk/rmi/src/main/java/javax: ./
rmi/ rmi/CORBA/
Author: enolan
Date: Thu Sep 21 04:22:03 2006
New Revision: 448517
URL: http://svn.apache.org/viewvc?view=rev&rev=448517
Log:
Yoko-102- Applying Alexey's updated patch to create implementaion of javax.rmi.PortableRemoteObject and the javax.rmi.CORBA package.
Added:
incubator/yoko/trunk/rmi/src/main/java/javax/
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ClassDesc.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObject.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObjectDelegate.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Stub.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/StubDelegate.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Tie.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Util.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/UtilDelegate.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandler.java (with props)
incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandlerMultiFormat.java (with props)
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ClassDesc.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ClassDesc.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ClassDesc.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ClassDesc.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.io.Serializable;
+
+public class ClassDesc implements Serializable {
+ String repid;
+ String codebase;
+
+ public ClassDesc() {
+ }
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ClassDesc.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ClassDesc.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObject.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObject.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObject.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObject.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.NoSuchObjectException;
+import javax.rmi.CORBA.PortableRemoteObjectDelegate;
+
+public class PortableRemoteObject {
+ private static PortableRemoteObjectDelegate delegate = null;
+ private static final String defaultDelegate = "org.apache.yoko.rmi.impl.PortableRemoteObjectImpl";
+
+ static {
+ // Initialize delegate
+ String delegateName = System.getProperty("javax.rmi.CORBA.PortableRemoteObjectClass", defaultDelegate);
+ try {
+ delegate = (PortableRemoteObjectDelegate)Class.forName(delegateName).newInstance();
+ } catch (Exception e) {
+ throw new RuntimeException("Can not create PortableRemoteObject delegate: "+delegateName, e);
+ }
+ }
+
+ protected PortableRemoteObject() throws RemoteException {
+ // Register object
+ //exportObject(this);
+ }
+
+ public static void connect(Remote target, Remote source) throws RemoteException {
+ delegate.connect(target, source);
+ }
+
+ public static void exportObject(Remote o) throws RemoteException {
+ delegate.exportObject(o);
+ }
+
+ public static Object narrow(Object from, Class to) throws ClassCastException {
+ return delegate.narrow(from, to);
+ }
+
+ public static Remote toStub(Remote o) throws NoSuchObjectException {
+ return delegate.toStub(o);
+ }
+
+ public static void unexportObject(Remote o) throws NoSuchObjectException {
+ delegate.unexportObject(o);
+ }
+}
+
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObject.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObject.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObjectDelegate.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObjectDelegate.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObjectDelegate.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObjectDelegate.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.NoSuchObjectException;
+
+public interface PortableRemoteObjectDelegate {
+ void connect(Remote t, Remote s) throws RemoteException;
+ void exportObject(Remote o) throws RemoteException;
+ Object narrow(Object from, Class to) throws ClassCastException;
+ Remote toStub(Remote o) throws NoSuchObjectException;
+ void unexportObject(Remote o) throws NoSuchObjectException;
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObjectDelegate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/PortableRemoteObjectDelegate.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Stub.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Stub.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Stub.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Stub.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.io.Serializable;
+import java.rmi.RemoteException;
+import org.omg.CORBA.ORB;
+import org.omg.CORBA_2_3.portable.ObjectImpl;
+
+public abstract class Stub extends ObjectImpl implements Serializable {
+ private StubDelegate delegate = null;
+ private final String defaultDelegate = "org.apache.yoko.rmi.impl.StubImpl";
+
+ public Stub() {
+ super();
+
+ // Initialize delegate
+ String delegateName = System.getProperty("javax.rmi.CORBA.StubClass", defaultDelegate);
+ try {
+ delegate = (StubDelegate)Class.forName(delegateName).newInstance();
+ } catch (Exception e) {
+ throw new RuntimeException("Can not create Stub delegate: "+delegateName, e);
+ }
+ }
+
+ public void connect(ORB orb) throws RemoteException {
+ delegate.connect(this, orb);
+ }
+
+ public boolean equals(Object o) {
+ return delegate.equals(this, o);
+ }
+
+ public int hashCode() {
+ return delegate.hashCode(this);
+ }
+
+ public String toString() {
+ return delegate.toString(this);
+ }
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Stub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Stub.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/StubDelegate.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/StubDelegate.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/StubDelegate.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/StubDelegate.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+import java.io.IOException;
+import java.rmi.RemoteException;
+import org.omg.CORBA.ORB;
+
+public interface StubDelegate {
+ void connect(Stub self, ORB orb) throws RemoteException;
+ boolean equals(Stub self, Object o);
+ int hashCode(Stub self);
+ void readObject(Stub self, ObjectInputStream ois) throws IOException, ClassNotFoundException;
+ String toString(Stub self);
+ void writeObject(Stub self, ObjectOutputStream oos) throws IOException;
+}
+
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/StubDelegate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/StubDelegate.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Tie.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Tie.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Tie.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Tie.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.rmi.Remote;
+import java.rmi.NoSuchObjectException;
+import org.omg.CORBA.ORB;
+import org.omg.CORBA.portable.InvokeHandler;
+
+public interface Tie extends InvokeHandler {
+ void deactivate() throws NoSuchObjectException;
+ Remote getTarget();
+ ORB orb();
+ void orb(ORB orb);
+ void setTarget(Remote target);
+ org.omg.CORBA.Object thisObject();
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Tie.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Tie.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Util.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Util.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Util.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Util.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.NoSuchObjectException;
+import org.omg.CORBA.ORB;
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.InputStream;
+import org.omg.CORBA.portable.OutputStream;
+
+public class Util {
+ private static UtilDelegate delegate = null;
+ private static final String defaultDelegate = "org.apache.yoko.rmi.impl.UtilImpl";
+
+ static {
+ // Initialize delegate
+ String delegateName = System.getProperty("javax.rmi.CORBA.UtilClass", defaultDelegate);
+ try {
+ delegate = (UtilDelegate)Class.forName(delegateName).newInstance();
+ } catch (Exception e) {
+ throw new RuntimeException("Can not create Util delegate: "+delegateName, e);
+ }
+ }
+
+ public static Object copyObject(Object o, ORB orb) throws RemoteException {
+ return delegate.copyObject(o, orb);
+ }
+
+ public static Object[] copyObjects(Object[] objs, ORB orb) throws RemoteException {
+ return delegate.copyObjects(objs, orb);
+ }
+
+ public static ValueHandler createValueHandler() {
+ return delegate.createValueHandler();
+ }
+
+ public static String getCodebase(Class clz) {
+ return delegate.getCodebase(clz);
+ }
+
+ public static Tie getTie(Remote t) {
+ return delegate.getTie(t);
+ }
+
+ public static boolean isLocal(Stub s) throws RemoteException {
+ return delegate.isLocal(s);
+ }
+
+ public static Class loadClass(String name, String codebase, ClassLoader loader) throws ClassNotFoundException {
+ return delegate.loadClass(name, codebase, loader);
+ }
+
+ public static RemoteException mapSystemException(SystemException e) {
+ return delegate.mapSystemException(e);
+ }
+
+ public static Object readAny(InputStream is) {
+ return delegate.readAny(is);
+ }
+
+ public static void registerTarget(Tie tie, Remote target) {
+ delegate.registerTarget(tie, target);
+ }
+
+ public static void unexportObject(Remote t) throws NoSuchObjectException {
+ delegate.unexportObject(t);
+ }
+
+ public static RemoteException wrapException(Throwable e) {
+ return delegate.wrapException(e);
+ }
+
+ public static void writeAbstractObject(OutputStream os, Object o) {
+ delegate.writeAbstractObject(os, o);
+ }
+
+ public static void writeAny(OutputStream os, Object o) {
+ delegate.writeAny(os, o);
+ }
+
+ public static void writeRemoteObject(OutputStream os, Object o) {
+ delegate.writeRemoteObject(os, o);
+ }
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Util.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/Util.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/UtilDelegate.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/UtilDelegate.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/UtilDelegate.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/UtilDelegate.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.NoSuchObjectException;
+import org.omg.CORBA.ORB;
+import org.omg.CORBA.SystemException;
+import org.omg.CORBA.portable.InputStream;
+import org.omg.CORBA.portable.OutputStream;
+
+public interface UtilDelegate {
+ Object copyObject(Object o, ORB orb) throws RemoteException;
+ Object[] copyObjects(Object[] objs, ORB orb) throws RemoteException;
+ ValueHandler createValueHandler();
+ String getCodebase(Class clz);
+ Tie getTie(Remote t);
+ boolean isLocal(Stub s) throws RemoteException;
+ Class loadClass(String name, String codebase, ClassLoader loader) throws ClassNotFoundException;
+ RemoteException mapSystemException(SystemException e);
+ Object readAny(InputStream is);
+ void registerTarget(Tie tie, Remote target);
+ void unexportObject(Remote target) throws NoSuchObjectException;
+ RemoteException wrapException(Throwable obj);
+ void writeAbstractObject(OutputStream os, Object o);
+ void writeAny(OutputStream os, Object o);
+ void writeRemoteObject(OutputStream os, Object o);
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/UtilDelegate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/UtilDelegate.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandler.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandler.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandler.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandler.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.io.Serializable;
+import org.omg.CORBA.portable.InputStream;
+import org.omg.CORBA.portable.OutputStream;
+import org.omg.SendingContext.RunTime;
+
+public interface ValueHandler {
+ String getRMIRepositoryID(Class clz);
+ RunTime getRunTimeCodeBase();
+ Serializable readValue(InputStream is, int off, Class clz, String repID, RunTime sender);
+ Serializable writeReplace(Serializable val);
+ void writeValue(OutputStream os, Serializable val);
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandler.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandlerMultiFormat.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandlerMultiFormat.java?view=auto&rev=448517
==============================================================================
--- incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandlerMultiFormat.java (added)
+++ incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandlerMultiFormat.java Thu Sep 21 04:22:03 2006
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.rmi.CORBA;
+
+import java.io.Serializable;
+import org.omg.CORBA.portable.OutputStream;
+
+public interface ValueHandlerMultiFormat extends ValueHandler {
+ byte getMaximumStreamFormatVersion();
+ void writeValue(OutputStream os, Serializable val, byte streamVer);
+}
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandlerMultiFormat.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/yoko/trunk/rmi/src/main/java/javax/rmi/CORBA/ValueHandlerMultiFormat.java
------------------------------------------------------------------------------
svn:keywords = Rev Date